|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.mwe.internal.core.debug.processing.handlers.BreakpointRuntimeHandler
public class BreakpointRuntimeHandler
This class handles the communication of Breakpoints on the runtime side. It
listens in an extra thread for set and removal of breakpoints. The
DebugMonitor
uses this class to suspend the runtime process at
breakpoints.
Field Summary | |
---|---|
protected Connection |
connection
|
protected DebugMonitor |
monitor
|
static int |
REMOVE
|
static int |
SET
|
Fields inherited from interface org.eclipse.emf.mwe.internal.core.debug.processing.ProcessHandler |
---|
INTERRUPT, POP, PUSH, SHALL_HANDLE, SUSPEND |
Constructor Summary | |
---|---|
BreakpointRuntimeHandler()
|
Method Summary | |
---|---|
void |
init(DebugMonitor monitor,
Connection connection)
initiate the instantiated handler. |
boolean |
isLastCall()
if true, the handler has the last call and will be processed at the last handler |
void |
run()
|
boolean |
shallHandle(boolean lastState,
java.lang.Object element,
int flag)
no contribution here |
boolean |
shallInterrupt(boolean lastState)
no contribution here |
boolean |
shallSuspend(boolean lastState,
java.lang.Object element,
int flag)
returns true if a breakpoint is rgeistered for that element |
void |
startListener()
start the listening process in an extra thread, if required |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SET
public static final int REMOVE
protected Connection connection
protected DebugMonitor monitor
Constructor Detail |
---|
public BreakpointRuntimeHandler()
Method Detail |
---|
public void init(DebugMonitor monitor, Connection connection)
RuntimeHandler
DebugMonitor
and Connection
instances that may be needed for the handler to do it's workDebugMonitor
dependent on the type of handler.
init
in interface RuntimeHandler
monitor
- the DebugMonitorconnection
- the connection to the debugger frameworkRuntimeHandler.init(org.eclipse.emf.mwe.internal.core.debug.processing.DebugMonitor,
org.eclipse.emf.mwe.internal.core.debug.communication.Connection)
public void startListener()
RuntimeHandler
startListener
in interface RuntimeHandler
RuntimeHandler.startListener()
public void run()
run
in interface java.lang.Runnable
Runnable.run()
public boolean isLastCall()
ProcessHandler
isLastCall
in interface ProcessHandler
public boolean shallSuspend(boolean lastState, java.lang.Object element, int flag)
shallSuspend
in interface ProcessHandler
lastState
- the consolidated decisions of previously asked listenerselement
- the element that is questionedflag
- one of the values IEventHandler.NORMAL_FRAME
or
IEventHandler.END_FRAME
ProcessHandler.shallSuspend(boolean,
java.lang.Object, int)
public boolean shallHandle(boolean lastState, java.lang.Object element, int flag)
shallHandle
in interface ProcessHandler
lastState
- the consolidated decisions of previously asked listenerselement
- the element that is questionedflag
- one of the values IProcessHandler.PUSH
or IProcessHandler.POP
ProcessHandler.shallHandle(boolean,
java.lang.Object, int)
public boolean shallInterrupt(boolean lastState)
shallInterrupt
in interface ProcessHandler
lastState
- the consolidated decisions of previously asked listeners
ProcessHandler.shallInterrupt(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |