Class EventRuntimeHandler
java.lang.Object
org.eclipse.emf.mwe.internal.core.debug.processing.handlers.EventRuntimeHandler
- All Implemented Interfaces:
EventHandler
,RuntimeHandler
This class handles the communication of debug events on the runtime side.
It sends them out (together with addition syntax element information, if required).
It sends them out (together with addition syntax element information, if required).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from interface org.eclipse.emf.mwe.core.debug.processing.EventHandler
END_FRAME, NORMAL_FRAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(DebugMonitor monitor, Connection connection) initiate the instantiated handler.void
Pop the element from the stack, adjust the cleanStackLevel value if requiredvoid
Push the element onto the stackvoid
resumed()
Send RESUMED event to the debug servervoid
started()
Send STARTED event to the debug servervoid
no need to listenvoid
Send SUSPENDED event to the debug server together with the number of stack elements that are still the same (cleanStackLevel) since the last suspend and all new SyntaxElements.
Wait for a confirmation.void
Send TERMINATED event to the debug server
-
Field Details
-
STARTED
public static final int STARTED- See Also:
-
SUSPENDED
public static final int SUSPENDED- See Also:
-
RESUMED
public static final int RESUMED- See Also:
-
TERMINATED
public static final int TERMINATED- See Also:
-
-
Constructor Details
-
EventRuntimeHandler
public EventRuntimeHandler()
-
-
Method Details
-
init
Description copied from interface:RuntimeHandler
initiate the instantiated handler. It gets theDebugMonitor
andConnection
instances that may be needed for the handler to do it's work
the handler may be registered at theDebugMonitor
dependent on the type of handler.- Specified by:
init
in interfaceRuntimeHandler
- Parameters:
monitor
- the DebugMonitorconnection
- the connection to the debugger framework- See Also:
-
startListener
public void startListener()no need to listen- Specified by:
startListener
in interfaceRuntimeHandler
- See Also:
-
started
Send STARTED event to the debug server- Specified by:
started
in interfaceEventHandler
- Throws:
IOException
- See Also:
-
preTask
Push the element onto the stack- Specified by:
preTask
in interfaceEventHandler
- See Also:
-
postTask
Pop the element from the stack, adjust the cleanStackLevel value if required- Specified by:
postTask
in interfaceEventHandler
- See Also:
-
suspended
Send SUSPENDED event to the debug server together with the number of stack elements that are still the same (cleanStackLevel) since the last suspend and all new SyntaxElements.
Wait for a confirmation. In the meantime other threads could handle for instance variable requests.- Specified by:
suspended
in interfaceEventHandler
- Throws:
IOException
- See Also:
-
resumed
Send RESUMED event to the debug server- Specified by:
resumed
in interfaceEventHandler
- Throws:
IOException
- See Also:
-
terminated
Send TERMINATED event to the debug server- Specified by:
terminated
in interfaceEventHandler
- Throws:
IOException
- See Also:
-