org.eclipse.emf.mwe.internal.core.debug.processing.handlers
Class VariablesRuntimeHandler

java.lang.Object
  extended by org.eclipse.emf.mwe.internal.core.debug.processing.handlers.VariablesRuntimeHandler
All Implemented Interfaces:
java.lang.Runnable, EventHandler, RuntimeHandler

public class VariablesRuntimeHandler
extends java.lang.Object
implements RuntimeHandler, EventHandler, java.lang.Runnable

This class handles the communication of variable names and values with the debug server.
It caches variable values with it's id and handles also cleanup of this cache if values are no longer used.


Field Summary
 
Fields inherited from interface org.eclipse.emf.mwe.core.debug.processing.EventHandler
END_FRAME, NORMAL_FRAME
 
Constructor Summary
VariablesRuntimeHandler()
           
 
Method Summary
 void init(DebugMonitor monitor, Connection connection)
          initiate the instantiated handler.
 void postTask(java.lang.Object context)
          pop the peek element from the stack
 void preTask(java.lang.Object element, java.lang.Object context, int state)
          push the syntax element onto the stack
 void resumed()
          no contribution here
 void run()
           
 void started()
          no contribution here
 void startListener()
          start the listening process in an extra thread, if required
 void suspended()
          no contribution here
 void terminated()
          no contribution here
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariablesRuntimeHandler

public VariablesRuntimeHandler()
Method Detail

init

public void init(DebugMonitor monitor,
                 Connection connection)
Description copied from interface: RuntimeHandler
initiate the instantiated handler. It gets the DebugMonitor and Connection instances that may be needed for the handler to do it's work
the handler may be registered at the DebugMonitor dependent on the type of handler.

Specified by:
init in interface RuntimeHandler
Parameters:
monitor - the DebugMonitor
connection - the connection to the debugger framework

startListener

public void startListener()
Description copied from interface: RuntimeHandler
start the listening process in an extra thread, if required

Specified by:
startListener in interface RuntimeHandler

run

public void run()
Specified by:
run in interface java.lang.Runnable

preTask

public void preTask(java.lang.Object element,
                    java.lang.Object context,
                    int state)
push the syntax element onto the stack

Specified by:
preTask in interface EventHandler
See Also:
org.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#preTask(java.lang.Object, int)

postTask

public void postTask(java.lang.Object context)
pop the peek element from the stack

Specified by:
postTask in interface EventHandler
See Also:
org.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#postTask()

resumed

public void resumed()
no contribution here

Specified by:
resumed in interface EventHandler
See Also:
org.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#resumed()

suspended

public void suspended()
no contribution here

Specified by:
suspended in interface EventHandler
See Also:
org.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#resumed()

started

public void started()
no contribution here

Specified by:
started in interface EventHandler
See Also:
org.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#resumed()

terminated

public void terminated()
no contribution here

Specified by:
terminated in interface EventHandler
See Also:
org.eclipse.emf.mwe.internal.core.debug.processing.EventHandler#resumed()