Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.launch.java/src/org/eclipse/etrice/generator/launch/java/JavaGeneratorLaunchConfigurationDelegate.java')
-rw-r--r--plugins/org.eclipse.etrice.generator.launch.java/src/org/eclipse/etrice/generator/launch/java/JavaGeneratorLaunchConfigurationDelegate.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.generator.launch.java/src/org/eclipse/etrice/generator/launch/java/JavaGeneratorLaunchConfigurationDelegate.java b/plugins/org.eclipse.etrice.generator.launch.java/src/org/eclipse/etrice/generator/launch/java/JavaGeneratorLaunchConfigurationDelegate.java
index ad22f3821..9e856ad54 100644
--- a/plugins/org.eclipse.etrice.generator.launch.java/src/org/eclipse/etrice/generator/launch/java/JavaGeneratorLaunchConfigurationDelegate.java
+++ b/plugins/org.eclipse.etrice.generator.launch.java/src/org/eclipse/etrice/generator/launch/java/JavaGeneratorLaunchConfigurationDelegate.java
@@ -27,6 +27,7 @@ public class JavaGeneratorLaunchConfigurationDelegate extends GeneratorLaunchCon
/* (non-Javadoc)
* @see org.eclipse.etrice.generator.launch.GeneratorLaunchConfigurationDelegate#addArguments(org.eclipse.debug.core.ILaunchConfiguration, java.lang.StringBuffer)
*/
+ @SuppressWarnings("deprecation") // stay compatible with older launch configurations
@Override
protected void addArguments(ILaunchConfiguration configuration, StringBuffer argString) throws CoreException {
if (configuration.getAttribute(JavaGeneratorConfigTab.LIB, false)) {
@@ -36,8 +37,12 @@ public class JavaGeneratorLaunchConfigurationDelegate extends GeneratorLaunchCon
argString.append(" "+Main.OPTION_SAVE_GEN_MODEL);
argString.append(" "+configuration.getAttribute(JavaGeneratorConfigTab.GEN_MODEL_PATH, "?"));
}
- if (configuration.getAttribute(JavaGeneratorConfigTab.GEN_INSTANCE_DIAGRAM, false))
- argString.append(" "+Main.OPTION_GEN_INST_DIAG);
+ if (configuration.getAttribute(JavaGeneratorConfigTab.GEN_DOCUMENTATION, false)
+ || configuration.getAttribute(JavaGeneratorConfigTab.GEN_INSTANCE_DIAGRAM, false))
+ argString.append(" "+Main.OPTION_DOCUMENTATION);
+ if (configuration.getAttribute(JavaGeneratorConfigTab.DEBUG, false)) {
+ argString.append(" "+Main.OPTION_DEBUG);
+ }
}
/* (non-Javadoc)

Back to the top