diff options
author | Henrik Rentz-Reichert | 2011-09-22 14:48:29 +0000 |
---|---|---|
committer | Henrik Rentz-Reichert | 2011-09-22 14:48:29 +0000 |
commit | 7ad3ef749024c690d3a7e5c0ffec98b83ac0d8e6 (patch) | |
tree | e20cdf2371cbc43ee686d9dc9559712c3260fb80 /plugins/org.eclipse.etrice.generator.launch | |
parent | 708dd65d6704dc5469ecd3f54a1eba9722aed461 (diff) | |
download | org.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.java | 8 |
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();
}
|