From d4fd859c72c4bc60614e9546d4384c84b87f2b0e Mon Sep 17 00:00:00 2001 From: Tom Schindl Date: Fri, 24 Apr 2015 11:09:53 +0200 Subject: Bug 465387 - [API-Break] UISynchronizeImpl should be contributed as an OSGi-Service --- .../org/eclipse/fx/testcases/e4/parts/ControlPanel.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'testcases') 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 dc791f9df..fa19d6087 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 @@ -19,6 +19,7 @@ import javafx.scene.layout.HBox; import javafx.scene.layout.VBox; import javafx.util.Callback; +import javax.annotation.PostConstruct; import javax.inject.Inject; import javax.inject.Named; @@ -45,7 +46,9 @@ import org.eclipse.e4.ui.workbench.modeling.EModelService; import org.eclipse.e4.ui.workbench.modeling.EPartService; import org.eclipse.e4.ui.workbench.modeling.EPartService.PartState; import org.eclipse.e4.ui.workbench.modeling.ESelectionService; +import org.eclipse.fx.core.ThreadSynchronize; import org.eclipse.fx.ui.services.Constants; +import org.eclipse.fx.ui.services.sync.UISynchronize; import org.osgi.service.event.Event; @SuppressWarnings("restriction") @@ -64,6 +67,15 @@ public class ControlPanel { @Inject EHandlerService handlerService; + @Inject + UISynchronize sync; + + @Inject + org.eclipse.e4.ui.di.UISynchronize e4Sync; + + @Inject + ThreadSynchronize coreSync; + @SuppressWarnings("rawtypes") @Inject public ControlPanel(BorderPane p, final MApplication application, final MWindow window, @Optional final MPerspective perspective, final EPartService partService, final EModelService modelService, EMenuService menuService, final IEventBroker broker, final MPart self) { @@ -589,4 +601,9 @@ public class ControlPanel { public void setWindowFocusControl(@Named(Constants.WINDOW_FOCUS_NODE) @Optional Node node) { System.err.println("WindowFocus@" + node); } + + @PostConstruct + void initDone() { + System.err.println("SYNC: " + sync + " => " + e4Sync + " => " + coreSync); + } } -- cgit v1.2.3