|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.trace.ui.internal.util.ProcessAdapter
org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.ACProcessToDebugProcessAdapter
public class ACProcessToDebugProcessAdapter
This class provides an adapter from AC IProcess (TPTP) to the debug IProcess (Debug). It's primary purpose is to capture the process' output stream and display it in the console view. This is an almost identical clone of org.eclipse.hyades.trace.ui.internal.util.ProcessAdapter. These two classes need to eventually be merged to provide one adapter for the Process (old execution framework) and the IProcess (new execution framework) objects.
| Field Summary | |
|---|---|
protected int |
launchMode
The launch mode |
| Fields inherited from interface org.eclipse.debug.core.model.IProcess |
|---|
ATTR_CMDLINE, ATTR_PROCESS_LABEL, ATTR_PROCESS_TYPE |
| Constructor Summary | |
|---|---|
ACProcessToDebugProcessAdapter(org.eclipse.debug.core.ILaunch launch,
org.eclipse.tptp.platform.execution.client.core.IProcess process,
int launchMode,
boolean isAlive)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
canTerminate()
|
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
java.lang.String |
getAttribute(java.lang.String key)
|
int |
getExitValue()
|
java.lang.String |
getLabel()
|
org.eclipse.debug.core.ILaunch |
getLaunch()
|
int |
getLaunchMode()
Return the launch mode of the launch |
org.eclipse.debug.core.model.IStreamsProxy |
getStreamsProxy()
|
boolean |
isTerminated()
|
void |
setAttribute(java.lang.String key,
java.lang.String value)
|
void |
setLaunchMode(int launchMode)
Set the launch mode of the launch |
void |
terminate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int launchMode
| Constructor Detail |
|---|
public ACProcessToDebugProcessAdapter(org.eclipse.debug.core.ILaunch launch,
org.eclipse.tptp.platform.execution.client.core.IProcess process,
int launchMode,
boolean isAlive)
launch - The launchprocess - The AC processlaunchMode - The launch mode.| Method Detail |
|---|
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class ProcessAdapterIAdaptable#getAdapter()public java.lang.String getAttribute(java.lang.String key)
getAttribute in interface org.eclipse.debug.core.model.IProcessgetAttribute in class ProcessAdapterIProcess#getAttribute()
public void setAttribute(java.lang.String key,
java.lang.String value)
setAttribute in interface org.eclipse.debug.core.model.IProcesssetAttribute in class ProcessAdapterIProcess#setAttribute()
public int getExitValue()
throws org.eclipse.debug.core.DebugException
getExitValue in interface org.eclipse.debug.core.model.IProcessgetExitValue in class ProcessAdapterorg.eclipse.debug.core.DebugExceptionIProcess#getExitValue()public java.lang.String getLabel()
getLabel in interface org.eclipse.debug.core.model.IProcessgetLabel in class ProcessAdapterIProcess#getLabel()public org.eclipse.debug.core.ILaunch getLaunch()
getLaunch in interface org.eclipse.debug.core.model.IProcessgetLaunch in class ProcessAdapterIProcess#getLaunch()public org.eclipse.debug.core.model.IStreamsProxy getStreamsProxy()
getStreamsProxy in interface org.eclipse.debug.core.model.IProcessgetStreamsProxy in class ProcessAdapterIProcess#getStreamsProxy()public boolean canTerminate()
canTerminate in interface org.eclipse.debug.core.model.ITerminatecanTerminate in class ProcessAdapterITerminate#canTerminate()public boolean isTerminated()
isTerminated in interface org.eclipse.debug.core.model.ITerminateisTerminated in class ProcessAdapterITerminate#isTerminated()
public void terminate()
throws org.eclipse.debug.core.DebugException
terminate in interface org.eclipse.debug.core.model.ITerminateterminate in class ProcessAdapterorg.eclipse.debug.core.DebugExceptionITerminate#terminate()public int getLaunchMode()
getLaunchMode in class ProcessAdapterpublic void setLaunchMode(int launchMode)
setLaunchMode in class ProcessAdapterlaunchMode - The launch mode
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||