Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-05-24 11:49:35 -0400
committerTom Schindl2014-05-24 11:49:35 -0400
commit5587e99d475ee1a884cfc5c47c3ce07f85a93bd6 (patch)
tree950e219626c87273c08da71a4e734e5a4a203dea /testcases
parent890624c4959e4a8bb25c259dd5d395f54e599356 (diff)
downloadorg.eclipse.efxclipse-5587e99d475ee1a884cfc5c47c3ce07f85a93bd6.tar.gz
org.eclipse.efxclipse-5587e99d475ee1a884cfc5c47c3ce07f85a93bd6.tar.xz
org.eclipse.efxclipse-5587e99d475ee1a884cfc5c47c3ce07f85a93bd6.zip
Bug 435366 - NPE in E4Application when
LifeCycleManager.@PostContextCreate returns False
Diffstat (limited to 'testcases')
-rw-r--r--testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/lifecycle/ApplicationLifecycle.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/lifecycle/ApplicationLifecycle.java b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/lifecycle/ApplicationLifecycle.java
new file mode 100644
index 000000000..b7eebdf70
--- /dev/null
+++ b/testcases/org.eclipse.fx.testcases.e4/src/org/eclipse/fx/testcases/e4/lifecycle/ApplicationLifecycle.java
@@ -0,0 +1,23 @@
+package org.eclipse.fx.testcases.e4.lifecycle;
+
+import java.net.URL;
+
+import javafx.scene.Node;
+import javafx.scene.control.Label;
+
+import org.eclipse.e4.ui.workbench.lifecycle.PostContextCreate;
+import org.eclipse.fx.ui.dialogs.TitleAreaDialog;
+
+public class ApplicationLifecycle {
+ @PostContextCreate
+ boolean showStartUp() {
+ TitleAreaDialog d = new TitleAreaDialog(null,"Application Lifecycle","Application Lifecycle","Sample for @PostContextCreate",(URL)null) {
+
+ @Override
+ protected Node createDialogContent() {
+ return new Label("Proceed?");
+ }
+ };
+ return d.open() == TitleAreaDialog.OK_BUTTON;
+ }
+}

Back to the top