diff options
-rw-r--r-- | bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java | 5 | ||||
-rw-r--r-- | bundles/org.eclipse.e4.tools/templates/common/$productFileName$.product (renamed from bundles/org.eclipse.e4.tools/templates/common/$projectName$.product) | 0 |
2 files changed, 3 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 c8c2ca83..cf120f5e 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 @@ -284,7 +284,7 @@ public class E4NewProjectWizard extends NewPluginProjectWizard { String cssValue = map .get(NewApplicationWizardPage.APPLICATION_CSS_PROPERTY); if (cssValue != null) { - cssValue = "platform:/plugin/" + productName + "/" + cssValue; + cssValue = "platform:/plugin/" + fPluginData.getId() + "/" + cssValue; map.put(NewApplicationWizardPage.APPLICATION_CSS_PROPERTY, cssValue); } @@ -357,7 +357,7 @@ public class E4NewProjectWizard extends NewPluginProjectWizard { // If the project has invalid characters, the plug-in name would replace // them with underscores, product name does the same - String pluginName = map.get(NewApplicationWizardPage.PRODUCT_NAME); + String pluginName = fPluginData.getId(); // If there's no Activator created we create default package if (!fPluginData.doGenerateClass()) { @@ -412,6 +412,7 @@ public class E4NewProjectWizard extends NewPluginProjectWizard { Map<String, String> keys = new HashMap<String, String>(); keys.put("projectName", pluginName); + keys.put("productFileName", map.get(NewApplicationWizardPage.PRODUCT_NAME)); String elementName = fragment.getElementName(); keys.put("packageName", (elementName.equals("") ? "" : elementName + ".") diff --git a/bundles/org.eclipse.e4.tools/templates/common/$projectName$.product b/bundles/org.eclipse.e4.tools/templates/common/$productFileName$.product index 01daa061..01daa061 100644 --- a/bundles/org.eclipse.e4.tools/templates/common/$projectName$.product +++ b/bundles/org.eclipse.e4.tools/templates/common/$productFileName$.product |