Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2016-04-18 08:37:26 +0000
committerHenrik Rentz-Reichert2016-04-18 08:37:26 +0000
commit9292ad444804ed8b63c25a520b2e78d5586875a0 (patch)
treef4a5a1c5df95092a269642a633313792431b6bb2 /plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/ProjectFileFragments.xtend
parent2d6f3784a8c0dde32cb8bf05f92a97be5831f001 (diff)
downloadorg.eclipse.etrice-9292ad444804ed8b63c25a520b2e78d5586875a0.tar.gz
org.eclipse.etrice-9292ad444804ed8b63c25a520b2e78d5586875a0.tar.xz
org.eclipse.etrice-9292ad444804ed8b63c25a520b2e78d5586875a0.zip
Bug 491444 - Add possibility that the wizard copies the C runtime
sources into the project https://bugs.eclipse.org/bugs/show_bug.cgi?id=491444 Also made name of main method configurable. Change-Id: Id6ef5b5e0a7e44c92cebe55e5f6437225f301034
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/ProjectFileFragments.xtend')
-rw-r--r--plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/ProjectFileFragments.xtend3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/ProjectFileFragments.xtend b/plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/ProjectFileFragments.xtend
index ab25d6573..e698f80b6 100644
--- a/plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/ProjectFileFragments.xtend
+++ b/plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/ProjectFileFragments.xtend
@@ -85,7 +85,7 @@ class ProjectFileFragments {
'''
}
- def static String getGeneratorLaunchConfig(String targetLanguage, String modelPath, String baseName, String[] addLines) {
+ def static String getGeneratorLaunchConfig(String targetLanguage, String modelPath, String baseName, String mainMethodName, String[] addLines) {
val prefStore = new ScopedPreferenceStore(InstanceScope.INSTANCE, "org.eclipse.etrice.generator.ui");
val useTranslation = prefStore.getBoolean(PreferenceConstants::GEN_USE_TRANSLATION)
'''
@@ -94,6 +94,7 @@ class ProjectFileFragments {
<booleanAttribute key="MSC" value="true"/>
<booleanAttribute key="DataLogging" value="true"/>
<booleanAttribute key="UseTranslation" value="«useTranslation»"/>
+ <stringAttribute key="MainMethodName" value="«mainMethodName»"/>
<listAttribute key="ModelFiles">
<listEntry value="${workspace_loc:«modelPath»/«baseName».etmap}"/>
</listAttribute>

Back to the top