Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorl.ripeynih2013-01-22 19:45:26 +0000
committerLars Vogel2013-03-13 12:59:30 +0000
commitf8f33a4a451a09a1e55231f8c2f2f2766533ee27 (patch)
tree37e9bfcf93f046ab8db7a6f185b9e55e07c0b5ff
parent9b1b5239629d8e6282f94693a643193e9deae4ef (diff)
downloadorg.eclipse.e4.tools-I20130314-2200.tar.gz
org.eclipse.e4.tools-I20130314-2200.tar.xz
org.eclipse.e4.tools-I20130314-2200.zip
creates an id for handlers following the pattern: <project_name>.handler.<commad_name> Change-Id: I22e7e39c0780a57c5b3edabaec3b47e199bac5a1
-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