Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2011-09-22 14:48:29 +0000
committerHenrik Rentz-Reichert2011-09-22 14:48:29 +0000
commit7ad3ef749024c690d3a7e5c0ffec98b83ac0d8e6 (patch)
treee20cdf2371cbc43ee686d9dc9559712c3260fb80 /plugins/org.eclipse.etrice.generator.launch
parent708dd65d6704dc5469ecd3f54a1eba9722aed461 (diff)
downloadorg.eclipse.etrice-7ad3ef749024c690d3a7e5c0ffec98b83ac0d8e6.tar.gz
org.eclipse.etrice-7ad3ef749024c690d3a7e5c0ffec98b83ac0d8e6.tar.xz
org.eclipse.etrice-7ad3ef749024c690d3a7e5c0ffec98b83ac0d8e6.zip
[generator.launch, generator.launch,java] console name provided by sub class
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.launch')
-rw-r--r--plugins/org.eclipse.etrice.generator.launch/src/org/eclipse/etrice/generator/launch/GeneratorLaunchConfigurationDelegate.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.generator.launch/src/org/eclipse/etrice/generator/launch/GeneratorLaunchConfigurationDelegate.java b/plugins/org.eclipse.etrice.generator.launch/src/org/eclipse/etrice/generator/launch/GeneratorLaunchConfigurationDelegate.java
index d9334f793..b578f8d4a 100644
--- a/plugins/org.eclipse.etrice.generator.launch/src/org/eclipse/etrice/generator/launch/GeneratorLaunchConfigurationDelegate.java
+++ b/plugins/org.eclipse.etrice.generator.launch/src/org/eclipse/etrice/generator/launch/GeneratorLaunchConfigurationDelegate.java
@@ -87,7 +87,7 @@ public abstract class GeneratorLaunchConfigurationDelegate extends AbstractJavaL
String[] args = pgmArgs.split("[ \t]");
- final MessageConsole myConsole = findConsole("EM Generator Output");
+ final MessageConsole myConsole = findConsole(getConsoleName());
Display.getDefault().syncExec(new Runnable() {
@Override
public void run() {
@@ -141,6 +141,7 @@ public abstract class GeneratorLaunchConfigurationDelegate extends AbstractJavaL
for (int i = 0; i < existing.length; i++)
if (name.equals(existing[i].getName()))
return (MessageConsole) existing[i];
+
// no console found, so create a new one
MessageConsole myConsole = new MessageConsole(name, null);
conMan.addConsoles(new IConsole[] { myConsole });
@@ -171,4 +172,9 @@ public abstract class GeneratorLaunchConfigurationDelegate extends AbstractJavaL
* @param out line wise output to console
*/
protected abstract void runGenerator(String[] args, ILineOutput out);
+
+ /**
+ * @return the name of the console for the generator output
+ */
+ protected abstract String getConsoleName();
}

Back to the top