|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A launch is the result of launching a debug session and/or one or more system processes.
This interface is not intended to be implemented by clients. Clients
should create instances of this interface by using the implementation
provided by the class Launch
.
Launch
Method Summary | |
void |
addDebugTarget(IDebugTarget target)
Adds the given debug target to this launch. |
void |
addProcess(IProcess process)
Adds the given process to this launch. |
String |
getAttribute(String key)
Returns the value of a client defined attribute. |
Object[] |
getChildren()
Returns the children of this launch - a collection of one or more debug targets and processes, possibly empty. |
IDebugTarget |
getDebugTarget()
Returns the primary (first) debug target associated with this launch, or null
if no debug target is associated with this launch. |
IDebugTarget[] |
getDebugTargets()
Returns all the debug targets associated with this launch, or an empty collection if no debug targets are associated with this launch. |
ILaunchConfiguration |
getLaunchConfiguration()
Returns the configuration that was launched, or null
if no configuration was launched. |
String |
getLaunchMode()
Returns the mode of this launch - one of the mode constants defined by the launch manager. |
IProcess[] |
getProcesses()
Returns the processes that were launched, or an empty collection if no processes were launched. |
ISourceLocator |
getSourceLocator()
Returns the source locator to use for locating source elements for the debug target associated with this launch, or null
if source lookup is not supported. |
boolean |
hasChildren()
Returns whether this launch contains at least one process or debug target. |
void |
removeDebugTarget(IDebugTarget target)
Removes the given debug target from this launch. |
void |
removeProcess(IProcess process)
Removes the given process from this launch. |
void |
setAttribute(String key,
String value)
Sets the value of a client defined attribute. |
void |
setSourceLocator(ISourceLocator sourceLocator)
Sets the source locator to use for locating source elements for the debug target associated with this launch, or null
if source lookup is not supported. |
Methods inherited from interface org.eclipse.debug.core.model.ITerminate |
canTerminate, isTerminated, terminate |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Method Detail |
public Object[] getChildren()
IDebugTarget
or IProcess
),
or an empty arraypublic IDebugTarget getDebugTarget()
null
if no debug target is associated with this launch. All debug targets
associated with this launch may be retrieved by
getDebugTargets()
.
null
public IProcess[] getProcesses()
public IDebugTarget[] getDebugTargets()
public void addDebugTarget(IDebugTarget target)
target
- debug target to add to this launchpublic void removeDebugTarget(IDebugTarget target)
target
- debug target to remove from this launchpublic void addProcess(IProcess process)
process
- the process to add to this launchpublic void removeProcess(IProcess process)
process
- the process to remove from this launchpublic ISourceLocator getSourceLocator()
null
if source lookup is not supported.
public void setSourceLocator(ISourceLocator sourceLocator)
null
if source lookup is not supported.
sourceLocator
- source locator or null
public String getLaunchMode()
ILaunchManager
public ILaunchConfiguration getLaunchConfiguration()
null
if no configuration was launched.
null
public void setAttribute(String key, String value)
key
- the attribute keyvalue
- the attribute valuepublic String getAttribute(String key)
key
- the attribute key
null
if undefinedpublic boolean hasChildren()
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |