|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.mwe.internal.core.debug.processing.handlers.EventRuntimeHandler
public class EventRuntimeHandler
This class handles the communication of debug events on the runtime side.
It sends them out (together with addition syntax element information, if
required).
| Field Summary | |
|---|---|
static int |
RESUMED
|
static int |
STARTED
|
static int |
SUSPENDED
|
static int |
TERMINATED
|
| Fields inherited from interface org.eclipse.emf.mwe.core.debug.processing.EventHandler |
|---|
END_FRAME, NORMAL_FRAME |
| Constructor Summary | |
|---|---|
EventRuntimeHandler()
|
|
| Method Summary | |
|---|---|
void |
init(DebugMonitor monitor,
Connection connection)
initiate the instantiated handler. |
void |
postTask(java.lang.Object context)
Pop the element from the stack, adjust the cleanStackLevel value if required |
void |
preTask(java.lang.Object element,
java.lang.Object context,
int state)
Push the element onto the stack |
void |
resumed()
Send RESUMED event to the debug server |
void |
started()
Send STARTED event to the debug server |
void |
startListener()
no need to listen |
void |
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. |
void |
terminated()
Send TERMINATED event to the debug server |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STARTED
public static final int SUSPENDED
public static final int RESUMED
public static final int TERMINATED
| Constructor Detail |
|---|
public EventRuntimeHandler()
| Method Detail |
|---|
public void init(DebugMonitor monitor,
Connection connection)
RuntimeHandlerDebugMonitor and Connection
instances that may be needed for the handler to do it's workDebugMonitor dependent on the type of handler.
init in interface RuntimeHandlermonitor - 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()
startListener in interface RuntimeHandlerRuntimeHandler.startListener()
public void started()
throws java.io.IOException
started in interface EventHandlerjava.io.IOExceptionorg.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#started()
public void preTask(java.lang.Object element,
java.lang.Object context,
int state)
preTask in interface EventHandlerorg.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#preTask(java.lang.Object,
int)public void postTask(java.lang.Object context)
postTask in interface EventHandlerorg.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#postTask()
public void suspended()
throws java.io.IOException
suspended in interface EventHandlerjava.io.IOExceptionorg.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#suspended()
public void resumed()
throws java.io.IOException
resumed in interface EventHandlerjava.io.IOExceptionorg.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#resumed()
public void terminated()
throws java.io.IOException
terminated in interface EventHandlerjava.io.IOExceptionorg.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#terminated()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||