Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2013-12-18 14:51:20 -0500
committerTom Schindl2013-12-18 14:51:20 -0500
commit6dc4c6f1dcbb5778cbcb19efa0a9a4e86df3f310 (patch)
tree96266f30c3f520106427df492b9882a80237943b /testcases
parentb61f9feac6a95d08f96cd96d74e68ee4ffd4e876 (diff)
downloadorg.eclipse.efxclipse-6dc4c6f1dcbb5778cbcb19efa0a9a4e86df3f310.tar.gz
org.eclipse.efxclipse-6dc4c6f1dcbb5778cbcb19efa0a9a4e86df3f310.tar.xz
org.eclipse.efxclipse-6dc4c6f1dcbb5778cbcb19efa0a9a4e86df3f310.zip
Bug 424371 - [e4] Publish Native widget instance in WindowContext
Diffstat (limited to 'testcases')
-rwxr-xr-xtestcases/org.eclipse.fx.testcases.e4/Application.e4xmi1
-rw-r--r--testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/handlers/DialogTest.java23
2 files changed, 24 insertions, 0 deletions
diff --git a/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi b/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi
index 3a5c27c42..d0422e5fa 100755
--- a/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi
+++ b/testcases/org.eclipse.fx.testcases.e4/Application.e4xmi
@@ -118,6 +118,7 @@
<children xsi:type="menu:DynamicMenuContribution" xmi:id="_K52XIC-JEeOp1Ym1-ovQ6w" elementId="org.eclipse.fx.testcases.e4.dynamicmenucontribution.1" label="Test2" contributionURI="bundleclass://org.eclipse.fx.testcases.e4/org.eclipse.fx.testcases.e4.contributions.DMContribution"/>
</children>
<children xsi:type="menu:DirectMenuItem" xmi:id="_PeGl8E4IEeORU9_aphRSog" elementId="org.eclipse.fx.testcases.e4.directmenuitem.hideshow" visible="false" label="Hide/Show Test"/>
+ <children xsi:type="menu:DirectMenuItem" xmi:id="_hyZusGgdEeOUgLXBh1syGQ" elementId="org.eclipse.fx.testcases.e4.directmenuitem.14" label="Open Dialog" contributionURI="bundleclass://org.eclipse.fx.testcases.e4/org.eclipse.fx.testcases.e4.handlers.DialogTest"/>
</children>
<children xsi:type="menu:Menu" xmi:id="_d-oDwO6yEeG4lfn-YKJbJw" elementId="org.eclipse.fx.testcases.e4.menu.3" label="Switch">
<children xsi:type="menu:HandledMenuItem" xmi:id="_jYdPMO6yEeG4lfn-YKJbJw" elementId="org.eclipse.fx.testcases.e4.handledmenuitem.4" label="Perspective 0" command="_kCbZQO6yEeG4lfn-YKJbJw">
diff --git a/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/handlers/DialogTest.java b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/handlers/DialogTest.java
new file mode 100644
index 000000000..71bc07e7e
--- /dev/null
+++ b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/handlers/DialogTest.java
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2013 BestSolution.at and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tom Schindl<tom.schindl@bestsolution.at> - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.fx.testcases.e4.handlers;
+
+import javafx.stage.Stage;
+
+import org.eclipse.e4.core.di.annotations.Execute;
+import org.eclipse.fx.ui.dialogs.MessageDialog;
+
+public class DialogTest {
+ @Execute
+ void openDialog(Stage stage) {
+ MessageDialog.openInformationDialog(stage, "Hello World!", "This is blocking!");
+ }
+}

Back to the top