|
Eclipse JDT Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.launching.AbstractVMRunner
public abstract class AbstractVMRunner
Abstract implementation of a VM runner.
Clients implementing VM runners should subclass this class.
IVMRunner| Constructor Summary | |
|---|---|
AbstractVMRunner()
|
|
| Method Summary | |
|---|---|
protected void |
abort(java.lang.String message,
java.lang.Throwable exception,
int code)
Throws a core exception with an error status object built from the given message, lower level exception, and error code. |
protected java.lang.String[] |
combineVmArgs(VMRunnerConfiguration configuration,
IVMInstall vmInstall)
Combines and returns VM arguments specified by the runner configuration, with those specified by the VM install, if any. |
protected java.lang.Process |
exec(java.lang.String[] cmdLine,
java.io.File workingDirectory)
|
protected java.lang.Process |
exec(java.lang.String[] cmdLine,
java.io.File workingDirectory,
java.lang.String[] envp)
|
protected java.lang.String |
getCmdLineAsString(java.lang.String[] cmdLine)
Returns the given array of strings as a single space-delimited string. |
protected java.util.Map |
getDefaultProcessMap()
Returns the default process attribute map for Java processes. |
protected abstract java.lang.String |
getPluginIdentifier()
Returns the identifier of the plug-in this VM runner originated from. |
protected IProcess |
newProcess(ILaunch launch,
java.lang.Process p,
java.lang.String label,
java.util.Map attributes)
Returns a new process aborting if the process could not be created. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jdt.launching.IVMRunner |
|---|
run |
| Constructor Detail |
|---|
public AbstractVMRunner()
| Method Detail |
|---|
protected void abort(java.lang.String message,
java.lang.Throwable exception,
int code)
throws CoreException
message - the status messageexception - lower level exception associated with the
error, or null if nonecode - error code
CoreException - The exception encapsulating the reason for the abortprotected abstract java.lang.String getPluginIdentifier()
protected java.lang.Process exec(java.lang.String[] cmdLine,
java.io.File workingDirectory)
throws CoreException
CoreExceptionDebugPlugin.exec(String[], File)
protected java.lang.Process exec(java.lang.String[] cmdLine,
java.io.File workingDirectory,
java.lang.String[] envp)
throws CoreException
CoreExceptionDebugPlugin.exec(String[], File, String[])protected java.lang.String getCmdLineAsString(java.lang.String[] cmdLine)
cmdLine - array of strings
protected java.util.Map getDefaultProcessMap()
protected IProcess newProcess(ILaunch launch,
java.lang.Process p,
java.lang.String label,
java.util.Map attributes)
throws CoreException
launch - the launch the process is contained inp - the system process to wraplabel - the label assigned to the processattributes - values for the attribute map
CoreException - problems occurred creating the process
protected java.lang.String[] combineVmArgs(VMRunnerConfiguration configuration,
IVMInstall vmInstall)
configuration - runner configurationvmInstall - vm install
|
Eclipse JDT Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||