Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java
index cf120f5e..d803118d 100644
--- a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java
+++ b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java
@@ -512,26 +512,26 @@ public class E4NewProjectWizard extends NewPluginProjectWizard {
mainWindow.setWidth(500);
mainWindow.setHeight(400);
resource.getContents().add((EObject) application);
+ MBindingContext rootContext = MCommandsFactory.INSTANCE
+ .createBindingContext();
+ rootContext
+ .setElementId("org.eclipse.ui.contexts.dialogAndWindow");
+ rootContext.setName("In Dialog and Windows");
+
+ MBindingContext childContext = MCommandsFactory.INSTANCE
+ .createBindingContext();
+ childContext.setElementId("org.eclipse.ui.contexts.window");
+ childContext.setName("In Windows");
+ rootContext.getChildren().add(childContext);
+
+ childContext = MCommandsFactory.INSTANCE.createBindingContext();
+ childContext.setElementId("org.eclipse.ui.contexts.dialog");
+ childContext.setName("In Dialogs");
+ rootContext.getChildren().add(childContext);
+
+ application.getRootContext().add(rootContext);
+ application.getBindingContexts().add(rootContext);
if (!isMinimalist) {
- MBindingContext rootContext = MCommandsFactory.INSTANCE
- .createBindingContext();
- rootContext
- .setElementId("org.eclipse.ui.contexts.dialogAndWindow");
- rootContext.setName("In Dialog and Windows");
-
- MBindingContext childContext = MCommandsFactory.INSTANCE
- .createBindingContext();
- childContext.setElementId("org.eclipse.ui.contexts.window");
- childContext.setName("In Windows");
- rootContext.getChildren().add(childContext);
-
- childContext = MCommandsFactory.INSTANCE.createBindingContext();
- childContext.setElementId("org.eclipse.ui.contexts.dialog");
- childContext.setName("In Dialogs");
- rootContext.getChildren().add(childContext);
-
- application.getRootContext().add(rootContext);
- application.getBindingContexts().add(rootContext);
// Create Quit command
MCommand quitCommand = createCommand(

Back to the top