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.java11
1 files changed, 6 insertions, 5 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 c3ae3916..6179a319 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
@@ -661,14 +661,15 @@ public class E4NewProjectWizard extends NewPluginProjectWizard {
command.setElementId(commandId);
application.getCommands().add(command);
{
- // Create Quit handler for command
- MHandler quitHandler = MCommandsFactory.INSTANCE.createHandler();
- quitHandler.setCommand(command);
+ // Create handler for command
+ MHandler handler = MCommandsFactory.INSTANCE.createHandler();
+ handler.setCommand(command);
String elementName = fragment.getElementName();
- quitHandler.setContributionURI("bundleclass://" + projectName + "/"
+ handler.setContributionURI("bundleclass://" + projectName + "/"
+ (elementName.equals("") ? "" : elementName + ".")
+ "handlers." + className);
- application.getHandlers().add(quitHandler);
+ handler.setElementId(projectName + ".handler." + name);
+ application.getHandlers().add(handler);
MKeyBinding binding = MCommandsFactory.INSTANCE.createKeyBinding();
binding.setKeySequence(keyBinding);

Back to the top