Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-01-21 08:32:26 -0500
committerTom Schindl2014-01-21 08:32:26 -0500
commit99a9573a4d76bab5fcc5847cce1319e558592e07 (patch)
tree401db9fe4b81b26dadc3a6b72d2a5d60d4bb88f6
parent52e52dedc0d5f9e55bde58a74d1791a5bc2c0ff5 (diff)
downloadorg.eclipse.efxclipse-luna.tar.gz
org.eclipse.efxclipse-luna.tar.xz
org.eclipse.efxclipse-luna.zip
Bug 426195 - IEventBroker.subscribe toluna
UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work
-rwxr-xr-xbundles/runtime/org.eclipse.fx.ui.workbench.fx/src/org/eclipse/fx/ui/workbench/fx/PartRenderingEngine.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/runtime/org.eclipse.fx.ui.workbench.fx/src/org/eclipse/fx/ui/workbench/fx/PartRenderingEngine.java b/bundles/runtime/org.eclipse.fx.ui.workbench.fx/src/org/eclipse/fx/ui/workbench/fx/PartRenderingEngine.java
index e4ef9ffe9..447919faa 100755
--- a/bundles/runtime/org.eclipse.fx.ui.workbench.fx/src/org/eclipse/fx/ui/workbench/fx/PartRenderingEngine.java
+++ b/bundles/runtime/org.eclipse.fx.ui.workbench.fx/src/org/eclipse/fx/ui/workbench/fx/PartRenderingEngine.java
@@ -66,6 +66,8 @@ public class PartRenderingEngine implements IPresentationEngine {
@Log
private Logger log;
+ private final IEventBroker eventBroker;
+
@Inject
public PartRenderingEngine(
@Named(E4Workbench.RENDERER_FACTORY_URI) @Optional String factoryUrl,
@@ -79,6 +81,7 @@ public class PartRenderingEngine implements IPresentationEngine {
IContributionFactory contribFactory = context.get(IContributionFactory.class);
this.factory = (RendererFactory) contribFactory.create(factoryUrl, context);
this.modelService = modelService;
+ this.eventBroker = eventBroker;
if( context.get(EBindingService.class.getName()) != null ) {
KeyBindingDispatcher dispatcher = ContextInjectionFactory.make(KeyBindingDispatcher.class, context);
@@ -378,6 +381,10 @@ public class PartRenderingEngine implements IPresentationEngine {
createGui(window);
}
}
+ if (eventBroker != null)
+ eventBroker.post(
+ UIEvents.UILifeCycle.APP_STARTUP_COMPLETE,
+ app);
//focus the selected part
MUIElement element = selected;
while ((element!=null)&&(!(element instanceof MPart))){

Back to the top