Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-01-21 12:37:12 -0500
committerTom Schindl2014-01-21 12:37:12 -0500
commit6060be480bf92b806f94b8d7b5f990d4f55ae3fd (patch)
tree4f55e8e2778ea74d2cf9ed98edc6929d505290c4 /testcases
parent99a9573a4d76bab5fcc5847cce1319e558592e07 (diff)
downloadorg.eclipse.efxclipse-6060be480bf92b806f94b8d7b5f990d4f55ae3fd.tar.gz
org.eclipse.efxclipse-6060be480bf92b806f94b8d7b5f990d4f55ae3fd.tar.xz
org.eclipse.efxclipse-6060be480bf92b806f94b8d7b5f990d4f55ae3fd.zip
adding sample for app start up
Diffstat (limited to 'testcases')
-rwxr-xr-xtestcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java
index 8e438f0bb..6bfc3bc93 100755
--- a/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java
+++ b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java
@@ -26,6 +26,7 @@ import org.eclipse.core.commands.ParameterizedCommand;
import org.eclipse.e4.core.commands.ECommandService;
import org.eclipse.e4.core.commands.EHandlerService;
import org.eclipse.e4.core.di.annotations.Optional;
+import org.eclipse.e4.core.services.events.IEventBroker;
import org.eclipse.e4.ui.di.Focus;
import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
@@ -38,11 +39,13 @@ import org.eclipse.e4.ui.model.application.ui.menu.MMenu;
import org.eclipse.e4.ui.model.application.ui.menu.MMenuElement;
import org.eclipse.e4.ui.model.application.ui.menu.MToolBar;
import org.eclipse.e4.ui.workbench.IPresentationEngine;
+import org.eclipse.e4.ui.workbench.UIEvents;
import org.eclipse.e4.ui.workbench.modeling.EModelService;
import org.eclipse.e4.ui.workbench.modeling.EPartService;
import org.eclipse.e4.ui.workbench.modeling.ESelectionService;
import org.eclipse.fx.ui.services.Constants;
import org.eclipse.fx.ui.services.PopupMenuService;
+import org.osgi.service.event.Event;
@SuppressWarnings("restriction")
public class ControlPanel {
@@ -62,7 +65,14 @@ public class ControlPanel {
@SuppressWarnings("rawtypes")
@Inject
- public ControlPanel(BorderPane p, final MApplication application, final MWindow window, @Optional final MPerspective perspective, final EPartService partService, final EModelService modelService, PopupMenuService<Control> menuService) {
+ public ControlPanel(BorderPane p, final MApplication application, final MWindow window, @Optional final MPerspective perspective, final EPartService partService, final EModelService modelService, PopupMenuService<Control> menuService, IEventBroker broker) {
+ broker.subscribe(UIEvents.UILifeCycle.APP_STARTUP_COMPLETE, new org.osgi.service.event.EventHandler() {
+
+ @Override
+ public void handleEvent(Event arg0) {
+ System.err.println("=========> START UP COMPLETED");
+ }
+ });
VBox box = new VBox();
{

Back to the top