Class LaunchAdapter
java.lang.Object
org.eclipse.m2m.atl.emftvm.launcher.LaunchAdapter
- All Implemented Interfaces:
VMMonitor
- Direct Known Subclasses:
NetworkDebugger
,ProfilingLaunchAdapter
Adapts an
ILaunch
object to the VMMonitor
interface.-
Constructor Summary
ConstructorDescriptionLaunchAdapter
(org.eclipse.debug.core.ILaunch launch) Creates a newLaunchAdapter
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
enter
(StackFrame frame) Enters the stack frame.void
error
(StackFrame frame, String msg, Exception e) Throws an error.org.eclipse.debug.core.ILaunch
Returns the Eclipse launch object.boolean
Returnstrue
when the running EMFTVM instance should be terminated.void
leave
(StackFrame frame) Leaves the stack frame.protected void
setTerminated
(boolean terminated) Sets whether this launch is terminated.void
step
(StackFrame frame) Steps into the stack frame.void
Invoked when execution is terminated.
-
Constructor Details
-
LaunchAdapter
public LaunchAdapter(org.eclipse.debug.core.ILaunch launch) Creates a newLaunchAdapter
.- Parameters:
launch
- the launch object to wrap
-
-
Method Details
-
isTerminated
public boolean isTerminated()Returnstrue
when the running EMFTVM instance should be terminated.- Specified by:
isTerminated
in interfaceVMMonitor
- Returns:
true
when the running EMFTVM instance should be terminated- See Also:
-
enter
Enters the stack frame. -
leave
Leaves the stack frame. -
step
Steps into the stack frame. -
terminated
public void terminated()Invoked when execution is terminated.- Specified by:
terminated
in interfaceVMMonitor
- See Also:
-
error
Throws an error. -
getLaunch
public org.eclipse.debug.core.ILaunch getLaunch()Returns the Eclipse launch object.- Returns:
- the launch
-
setTerminated
protected void setTerminated(boolean terminated) Sets whether this launch is terminated.- Parameters:
terminated
- whether this launch is terminated
-