diff options
author | Sopot Cela | 2013-07-10 14:07:37 +0000 |
---|---|---|
committer | Sopot Cela | 2013-07-10 14:07:37 +0000 |
commit | 2cbf68a4d38e88b13ad55bd5eca1a25453b1db5d (patch) | |
tree | ff15a75800e52a938020f7ba6175c669948bb6e5 | |
parent | 27dea4303d4b5c8c25b49cfb34e0298dde4afa42 (diff) | |
download | org.eclipse.e4.tools-I20130710-2200.tar.gz org.eclipse.e4.tools-I20130710-2200.tar.xz org.eclipse.e4.tools-I20130710-2200.zip |
Bug 412655 - [e4xmi] wizard should create binding contexts even when notI20130722-2200I20130721-2200I20130718-2200I20130717-2200I20130717-0900I20130716-2200I20130715-2200I20130714-2200I20130713-2200I20130712-2200I20130711-2200I20130710-2200
generating parts
-rw-r--r-- | bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java | 38 |
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( |