Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2012-09-03 14:42:01 -0400
committerSopot Cela2012-09-03 14:42:01 -0400
commitb467c9969d2bd1964497057c4b8e4e6f62b0dcff (patch)
tree70e1f04f3a76ab5a1b3ce21c262a6be4eddd975d
parent7987d2bc86d672747f5e73b6e63921a211f0f929 (diff)
downloadorg.eclipse.e4.tools-b467c9969d2bd1964497057c4b8e4e6f62b0dcff.tar.gz
org.eclipse.e4.tools-b467c9969d2bd1964497057c4b8e4e6f62b0dcff.tar.xz
org.eclipse.e4.tools-b467c9969d2bd1964497057c4b8e4e6f62b0dcff.zip
bug 321172: [Tooling] [tooling] e4 Application Project wizard generates
invalid package declarations and class URIs https://bugs.eclipse.org/bugs/show_bug.cgi?id=321172
-rw-r--r--bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java6
1 files changed, 4 insertions, 2 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 d5df9c94..65e60d2a 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
@@ -408,7 +408,8 @@ public class E4NewProjectWizard extends NewPluginProjectWizard {
Map<String, String> keys = new HashMap<String, String>();
keys.put("projectName", pluginName);
- keys.put("packageName", fragment.getElementName() + ".handlers");
+ String elementName = fragment.getElementName();
+ keys.put("packageName", (elementName.equals("")?"": elementName + ".")+"handlers");
try {
URL corePath = ResourceLocator.getProjectTemplateFiles(template_id);
@@ -645,8 +646,9 @@ public class E4NewProjectWizard extends NewPluginProjectWizard {
// Create Quit handler for command
MHandler quitHandler = MCommandsFactory.INSTANCE.createHandler();
quitHandler.setCommand(command);
+ String elementName = fragment.getElementName();
quitHandler.setContributionURI("bundleclass://" + projectName
- + "/" + fragment.getElementName() + ".handlers."
+ + "/" + (elementName.equals("")?"": elementName + ".")+"handlers."
+ className);
application.getHandlers().add(quitHandler);

Back to the top