Bug 412655 - [e4xmi] wizard should create binding contexts even when not
generating parts
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 cf120f5..d803118 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 @@
 			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(