org.eclipse.etrice.generator.launch
Class GeneratorLaunchConfigurationDelegate

java.lang.Object
  extended by org.eclipse.debug.core.model.LaunchConfigurationDelegate
      extended by org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
          extended by org.eclipse.etrice.generator.launch.GeneratorLaunchConfigurationDelegate
All Implemented Interfaces:
org.eclipse.debug.core.IDebugEventSetListener, org.eclipse.debug.core.model.ILaunchConfigurationDelegate, org.eclipse.debug.core.model.ILaunchConfigurationDelegate2
Direct Known Subclasses:
CGeneratorLaunchConfigurationDelegate, JavaGeneratorLaunchConfigurationDelegate

public abstract class GeneratorLaunchConfigurationDelegate
extends org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate

Author:
Henrik Rentz-Reichert (initial contribution)

Nested Class Summary
protected static class GeneratorLaunchConfigurationDelegate.ConsoleLineOutput
           
 
Field Summary
 
Fields inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus
 
Constructor Summary
GeneratorLaunchConfigurationDelegate()
           
 
Method Summary
protected abstract  void addArguments(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.StringBuffer argString)
          assemble the command line by adding further parameters
protected  void addModels(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.StringBuffer argString)
           
protected abstract  java.lang.String getConsoleName()
           
 void launch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor)
           
protected abstract  void runGenerator(java.lang.String[] args, ILineOutput out)
          call the generator main method
 
Methods inherited from class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
abort, getBootpath, getBootpathExt, getBreakpoints, getBuildOrder, getClasspath, getDefaultWorkingDirectory, getEnvironment, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunchManager, getMainTypeName, getProgramArguments, getProjectsForProblemSearch, getVMArguments, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getVMRunner, getVMSpecificAttributesMap, getWorkingDirectory, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, setDefaultSourceLocator, verifyJavaProject, verifyMainTypeName, verifyVMInstall, verifyWorkingDirectory
 
Methods inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getLaunch, saveBeforeLaunch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorLaunchConfigurationDelegate

public GeneratorLaunchConfigurationDelegate()
Method Detail

launch

public void launch(org.eclipse.debug.core.ILaunchConfiguration configuration,
                   java.lang.String mode,
                   org.eclipse.debug.core.ILaunch launch,
                   org.eclipse.core.runtime.IProgressMonitor monitor)
            throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

addModels

protected void addModels(org.eclipse.debug.core.ILaunchConfiguration configuration,
                         java.lang.StringBuffer argString)
                  throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

addArguments

protected abstract void addArguments(org.eclipse.debug.core.ILaunchConfiguration configuration,
                                     java.lang.StringBuffer argString)
                              throws org.eclipse.core.runtime.CoreException
assemble the command line by adding further parameters

Parameters:
configuration -
argString -
Throws:
org.eclipse.core.runtime.CoreException

runGenerator

protected abstract void runGenerator(java.lang.String[] args,
                                     ILineOutput out)
call the generator main method

Parameters:
args - the command line arguments
out - line wise output to console

getConsoleName

protected abstract java.lang.String getConsoleName()
Returns:
the name of the console for the generator output