diff options
author | Henrik Rentz-Reichert | 2016-04-18 08:37:26 +0000 |
---|---|---|
committer | Henrik Rentz-Reichert | 2016-04-18 08:37:26 +0000 |
commit | 9292ad444804ed8b63c25a520b2e78d5586875a0 (patch) | |
tree | f4a5a1c5df95092a269642a633313792431b6bb2 /plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/ProjectFileFragments.xtend | |
parent | 2d6f3784a8c0dde32cb8bf05f92a97be5831f001 (diff) | |
download | org.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.xtend | 3 |
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> |