Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2013-07-10 14:07:37 +0000
committerSopot Cela2013-07-10 14:07:37 +0000
commit2cbf68a4d38e88b13ad55bd5eca1a25453b1db5d (patch)
treeff15a75800e52a938020f7ba6175c669948bb6e5
parent27dea4303d4b5c8c25b49cfb34e0298dde4afa42 (diff)
downloadorg.eclipse.e4.tools-I20130710-2200.tar.gz
org.eclipse.e4.tools-I20130710-2200.tar.xz
org.eclipse.e4.tools-I20130710-2200.zip
generating parts
-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