Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-09-20 02:31:24 -0400
committerHenrik Rentz-Reichert2013-09-20 03:06:29 -0400
commite35469696de3e226a3190bc622e9be2b5dc60902 (patch)
tree8154aca33ac636ac3eef2050083e96e737e7b01b /plugins/org.eclipse.etrice.generator.launch.c
parenta277b5eb27b06037c4f775a897c469e1f843f673 (diff)
downloadorg.eclipse.etrice-e35469696de3e226a3190bc622e9be2b5dc60902.tar.gz
org.eclipse.etrice-e35469696de3e226a3190bc622e9be2b5dc60902.tar.xz
org.eclipse.etrice-e35469696de3e226a3190bc622e9be2b5dc60902.zip
[generator, generator.*] bug 406009: pull up standard options to base class
https://bugs.eclipse.org/406009 Change-Id: If3e3ce63e9fa192f575ad79c257bad9a5acf9bcc
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.launch.c')
-rw-r--r--plugins/org.eclipse.etrice.generator.launch.c/src/org/eclipse/etrice/generator/launch/c/CGeneratorLaunchConfigurationDelegate.java46
1 files changed, 0 insertions, 46 deletions
diff --git a/plugins/org.eclipse.etrice.generator.launch.c/src/org/eclipse/etrice/generator/launch/c/CGeneratorLaunchConfigurationDelegate.java b/plugins/org.eclipse.etrice.generator.launch.c/src/org/eclipse/etrice/generator/launch/c/CGeneratorLaunchConfigurationDelegate.java
index 8235dd966..3f1ab39b2 100644
--- a/plugins/org.eclipse.etrice.generator.launch.c/src/org/eclipse/etrice/generator/launch/c/CGeneratorLaunchConfigurationDelegate.java
+++ b/plugins/org.eclipse.etrice.generator.launch.c/src/org/eclipse/etrice/generator/launch/c/CGeneratorLaunchConfigurationDelegate.java
@@ -12,14 +12,9 @@
package org.eclipse.etrice.generator.launch.c;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.preferences.InstanceScope;
-import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.etrice.generator.base.ILineOutput;
import org.eclipse.etrice.generator.c.Main;
import org.eclipse.etrice.generator.launch.GeneratorLaunchConfigurationDelegate;
-import org.eclipse.etrice.generator.ui.preferences.PreferenceConstants;
-import org.eclipse.ui.preferences.ScopedPreferenceStore;
/**
* @author Henrik Rentz-Reichert
@@ -28,47 +23,6 @@ import org.eclipse.ui.preferences.ScopedPreferenceStore;
public class CGeneratorLaunchConfigurationDelegate extends GeneratorLaunchConfigurationDelegate {
/* (non-Javadoc)
- * @see org.eclipse.etrice.generator.launch.GeneratorLaunchConfigurationDelegate#addArguments(org.eclipse.debug.core.ILaunchConfiguration, java.lang.StringBuffer)
- */
- @SuppressWarnings("deprecation") // need this for backward compatibility
- @Override
- protected void addArguments(ILaunchConfiguration configuration, StringBuffer argString) throws CoreException {
- if (configuration.getAttribute(CGeneratorConfigTab.LIB, false)) {
- argString.append(" "+Main.OPTION_LIB);
- }
- if (configuration.getAttribute(CGeneratorConfigTab.SAVE_GEN_MODEL, false)) {
- argString.append(" "+Main.OPTION_SAVE_GEN_MODEL);
- argString.append(" "+configuration.getAttribute(CGeneratorConfigTab.GEN_MODEL_PATH, "?"));
- }
- if (configuration.getAttribute(CGeneratorConfigTab.GEN_DOCUMENTATION, false)
- || configuration.getAttribute(CGeneratorConfigTab.GEN_INSTANCE_DIAGRAM, false))
- argString.append(" "+Main.OPTION_GEN_INST_DIAG);
- if (configuration.getAttribute(CGeneratorConfigTab.DEBUG, false)) {
- argString.append(" "+Main.OPTION_DEBUG);
- }
- if (configuration.getAttribute(CGeneratorConfigTab.MSC, false)) {
- argString.append(" "+Main.OPTION_MSC);
- }
- if (configuration.getAttribute(CGeneratorConfigTab.VERBOSE, false)) {
- argString.append(" "+Main.OPTION_VERBOSE_RT);
- }
-
- ScopedPreferenceStore prefStore = new ScopedPreferenceStore(InstanceScope.INSTANCE, "org.eclipse.etrice.generator.ui");
- if (prefStore.getBoolean(PreferenceConstants.GEN_INCREMENTAL)) {
- argString.append(" "+Main.OPTION_GEN_INCREMENTAL);
- }
-
- argString.append(" "+Main.OPTION_GEN_DIR);
- argString.append(" "+prefStore.getString(PreferenceConstants.GEN_DIR));
-
- argString.append(" "+Main.OPTION_GEN_INFO_DIR);
- argString.append(" "+prefStore.getString(PreferenceConstants.GEN_INFO_DIR));
-
- argString.append(" "+Main.OPTION_GEN_DOC_DIR);
- argString.append(" "+prefStore.getString(PreferenceConstants.GEN_DOC_DIR));
- }
-
- /* (non-Javadoc)
* @see org.eclipse.etrice.generator.launch.GeneratorLaunchConfigurationDelegate#runGenerator(java.lang.String[], org.eclipse.etrice.generator.launch.ILineOutput)
*/
@Override

Back to the top