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 anILaunchobject to theVMMonitorinterface.
-
-
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 voidenter(StackFrame frame)Enters the stack frame.voiderror(StackFrame frame, java.lang.String msg, java.lang.Exception e)Throws an error.org.eclipse.debug.core.ILaunchgetLaunch()Returns the Eclipse launch object.booleanisTerminated()Returnstruewhen the running EMFTVM instance should be terminated.voidleave(StackFrame frame)Leaves the stack frame.protected voidsetTerminated(boolean terminated)Sets whether this launch is terminated.voidstep(StackFrame frame)Steps into the stack frame.voidterminated()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()
Returnstruewhen the running EMFTVM instance should be terminated.- Specified by:
isTerminatedin interfaceVMMonitor- Returns:
truewhen the running EMFTVM instance should be terminated- See Also:
VMMonitor.isTerminated()
-
enter
public void enter(StackFrame frame)
Enters the stack frame.- Specified by:
enterin 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:
leavein 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:
stepin 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:
terminatedin interfaceVMMonitor- See Also:
VMMonitor.terminated()
-
error
public void error(StackFrame frame, java.lang.String msg, java.lang.Exception e)
Throws an error.- Specified by:
errorin 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
-
-