Class LaunchAdapter
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.launcher.LaunchAdapter
-
- All Implemented Interfaces:
VMMonitor
- Direct Known Subclasses:
NetworkDebugger
,ProfilingLaunchAdapter
public class LaunchAdapter extends java.lang.Object implements VMMonitor
Adapts anILaunch
object to theVMMonitor
interface.
-
-
Constructor Summary
Constructors Constructor Description LaunchAdapter(org.eclipse.debug.core.ILaunch launch)
Creates a newLaunchAdapter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enter(StackFrame frame)
Enters the stack frame.void
error(StackFrame frame, java.lang.String msg, java.lang.Exception e)
Throws an error.org.eclipse.debug.core.ILaunch
getLaunch()
Returns the Eclipse launch object.boolean
isTerminated()
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
terminated()
Invoked when execution is terminated.
-
-
-
Constructor Detail
-
LaunchAdapter
public LaunchAdapter(org.eclipse.debug.core.ILaunch launch)
Creates a newLaunchAdapter
.- Parameters:
launch
- the launch object to wrap
-
-
Method Detail
-
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:
VMMonitor.isTerminated()
-
enter
public void enter(StackFrame frame)
Enters the stack frame.- Specified by:
enter
in interfaceVMMonitor
- Parameters:
frame
- the frame to enter in- See Also:
VMMonitor.enter(org.eclipse.m2m.atl.emftvm.util.StackFrame)
-
leave
public void leave(StackFrame frame)
Leaves the stack frame.- Specified by:
leave
in interfaceVMMonitor
- Parameters:
frame
- the frame to leave- See Also:
VMMonitor.leave(org.eclipse.m2m.atl.emftvm.util.StackFrame)
-
step
public void step(StackFrame frame)
Steps into the stack frame.- Specified by:
step
in interfaceVMMonitor
- Parameters:
frame
- the frame to step- See Also:
VMMonitor.step(org.eclipse.m2m.atl.emftvm.util.StackFrame)
-
terminated
public void terminated()
Invoked when execution is terminated.- Specified by:
terminated
in interfaceVMMonitor
- See Also:
VMMonitor.terminated()
-
error
public void error(StackFrame frame, java.lang.String msg, java.lang.Exception e)
Throws an error.- Specified by:
error
in interfaceVMMonitor
- Parameters:
frame
- the current framemsg
- the error messagee
- the exception- See Also:
VMMonitor.error(StackFrame, String, Exception)
-
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
-
-