Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2015-04-24 05:09:53 -0400
committerTom Schindl2015-04-24 05:09:53 -0400
commitd4fd859c72c4bc60614e9546d4384c84b87f2b0e (patch)
treedb166437ee1b0f3ba181212c20187b94e444601c /testcases
parenta9590dbad3ebe7d5dba5e700fb3be1fddc1b7fe8 (diff)
downloadorg.eclipse.efxclipse-d4fd859c72c4bc60614e9546d4384c84b87f2b0e.tar.gz
org.eclipse.efxclipse-d4fd859c72c4bc60614e9546d4384c84b87f2b0e.tar.xz
org.eclipse.efxclipse-d4fd859c72c4bc60614e9546d4384c84b87f2b0e.zip
Bug 465387 - [API-Break] UISynchronizeImpl should be contributed as an
OSGi-Service
Diffstat (limited to 'testcases')
-rwxr-xr-xtestcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/parts/ControlPanel.java17
1 files changed, 17 insertions, 0 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 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);
+ }
}

Back to the top