Package de.uka.ipd.sdq.workflow.ui
Class WorkflowProcess
java.lang.Object
org.eclipse.core.runtime.PlatformObject
de.uka.ipd.sdq.workflow.ui.WorkflowProcess
- All Implemented Interfaces:
IAdaptable
,IProcess
,ITerminate
An implementation of an IProcess which is able to log to the provided process console, but
otherwise unable to terminate, suspend, etc.
Extend this class if you can provide additional control over the running process.
-
Field Summary
Fields inherited from interface org.eclipse.debug.core.model.IProcess
ATTR_CMDLINE, ATTR_PROCESS_ID, ATTR_PROCESS_LABEL, ATTR_PROCESS_TYPE
-
Constructor Summary
ConstructorDescriptionInstantiates a new workflow process.WorkflowProcess
(ILaunch myLaunch) Instantiates a new workflow process. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppender
(StreamsProxyAppender appender) Adds the appender.boolean
getAdapter
(Class adapter) getAttribute
(String key) int
getLabel()
boolean
void
setAttribute
(String key, String value) void
-
Constructor Details
-
WorkflowProcess
Instantiates a new workflow process.- Parameters:
myLaunch
- the my launch
-
WorkflowProcess
public WorkflowProcess()Instantiates a new workflow process.
-
-
Method Details
-
getAttribute
- Specified by:
getAttribute
in interfaceIProcess
-
getExitValue
- Specified by:
getExitValue
in interfaceIProcess
- Throws:
DebugException
-
getLabel
-
getLaunch
-
getStreamsProxy
- Specified by:
getStreamsProxy
in interfaceIProcess
-
setAttribute
- Specified by:
setAttribute
in interfaceIProcess
-
getAdapter
- Specified by:
getAdapter
in interfaceIAdaptable
- Overrides:
getAdapter
in classPlatformObject
-
canTerminate
public boolean canTerminate()- Specified by:
canTerminate
in interfaceITerminate
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminated
in interfaceITerminate
-
terminate
- Specified by:
terminate
in interfaceITerminate
- Throws:
DebugException
-
addAppender
Adds the appender.- Parameters:
appender
- the appender
-