diff options
-rwxr-xr-x | bundles/runtime/org.eclipse.fx.ui.workbench.fx/src/org/eclipse/fx/ui/workbench/fx/PartRenderingEngine.java | 7 |
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))){ |