Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-01-20 05:06:30 -0500
committerTom Schindl2014-01-20 05:06:30 -0500
commit371cd1b9d16b056b02fdb20b0b0350d31f98757e (patch)
treec374ffa55fe0c5949c9144002332059fa5617ceb
parentadec01a11e7880a4270e83a19c70467e2523a316 (diff)
downloadorg.eclipse.efxclipse-371cd1b9d16b056b02fdb20b0b0350d31f98757e.tar.gz
org.eclipse.efxclipse-371cd1b9d16b056b02fdb20b0b0350d31f98757e.tar.xz
org.eclipse.efxclipse-371cd1b9d16b056b02fdb20b0b0350d31f98757e.zip
Bug 426089 - Opening Stages through MenuItems does not shift focus
-rwxr-xr-xbundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefMenuItemRenderer.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefMenuItemRenderer.java b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefMenuItemRenderer.java
index 16956fc0d..fa04ef9cc 100755
--- a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefMenuItemRenderer.java
+++ b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefMenuItemRenderer.java
@@ -13,6 +13,7 @@ package org.eclipse.fx.ui.workbench.renderers.fx;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
+import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.Event;
import javafx.event.EventHandler;
@@ -110,7 +111,13 @@ public class DefMenuItemRenderer extends BaseMenuItemRenderer<MenuItem> {
}
if( runnable != null ) {
- runnable.run();
+ Platform.runLater(new Runnable() {
+
+ @Override
+ public void run() {
+ runnable.run();
+ }
+ });
}
}
});

Back to the top