コード例 #1
0
 def getEventBroker(self):
     if self.eventBroker == None:
         self.eventBroker = E4Utils.getEclipseContext().get(
             Class.forName(
                 'org.eclipse.e4.core.services.events.IEventBroker'))
     return self.eventBroker
コード例 #2
0
 def __init__(self):
     self.eclipseContext = E4Utils.getEclipseContext().createChild()
     self.bindMap = {}
コード例 #3
0
ファイル: event.py プロジェクト: calltl/gumtree
 def getEventBroker(self):
     if self.eventBroker == None:
         self.eventBroker = E4Utils.getEclipseContext().get(Class.forName('org.eclipse.e4.core.services.events.IEventBroker'))
     return self.eventBroker
コード例 #4
0
def injectObject(object, eclipseContext=E4Utils.getEclipseContext()):
    ContextInjectionFactory.inject(object, eclipseContext)