org.openbp.cockpit.plugins.debugger
Class DebuggerPlugin

java.lang.Object
  extended by org.openbp.jaspira.plugin.AbstractPlugin
      extended by org.openbp.cockpit.plugins.debugger.DebuggerPlugin
All Implemented Interfaces:
Plugin

public class DebuggerPlugin
extends AbstractPlugin

Simple Plugin that handles debug communication with the OpenBP server.

Author:
Stephan Moritz

Nested Class Summary
 class DebuggerPlugin.BreakPointDecorator
          Decorator for breakpoints.
 class DebuggerPlugin.ClientEvents
          Event module for client-side debugger events.
 class DebuggerPlugin.InteractionEvents
          Interaction module.
 class DebuggerPlugin.OptionEvents
          Event module for client-side debugger events.
 class DebuggerPlugin.ServerEvents
          Debugger server interface module.
 class DebuggerPlugin.StepDecorator
          Decorator for current position of halted process.
 
Nested classes/interfaces inherited from class org.openbp.jaspira.plugin.AbstractPlugin
AbstractPlugin.StandardPluginEvents
 
Field Summary
static java.lang.Integer LINKTRACE_ANIMATION_GO
          Link trace flag: Show link animation and continue execution
static java.lang.Integer LINKTRACE_ANIMATION_STOP
          Link trace flag: Show link animation and stop at target
static java.lang.Integer LINKTRACE_SKIP
          Link trace flag: Skip link
static java.lang.Integer LINKTRACE_TARGET
          Link trace flag: Show link target only
 
Fields inherited from class org.openbp.jaspira.plugin.AbstractPlugin
PROPERTY_CONDITION, PROPERTY_DESCRIPTION, PROPERTY_ICON, PROPERTY_NAME, PROPERTY_SEQUENCE, PROPERTY_TITLE, PROPERTY_VENDOR, PROPERTY_VERSION
 
Fields inherited from interface org.openbp.jaspira.plugin.Plugin
ID_DELIMETER, LEVEL_APPLICATION, LEVEL_FRAME, LEVEL_PAGE, LEVEL_PLUGIN
 
Constructor Summary
DebuggerPlugin()
           
 
Method Summary
protected  void addBreakpoint(ModelQualifier qualifier)
          Adds a breakpoint and installs the breakpoint decorator.
protected  java.lang.Class[] getExternalOptionModuleClasses()
          Returns a list of external option module classes of this plugin.
 java.lang.String getResourceCollectionContainerName()
          Gets the name of the resource component the default resource of the plugin belongs to.
 void installFirstPlugin()
          Called when the first instance of this plugin is being created.
protected  void keepCompilerHappy()
           
protected  void pluginInstalled()
          Called after the install method of this plugin has been called.
protected  void pluginUninstalled()
          Performs clean up (unregistering of decorators).
 void uninstallLastPlugin()
          Called after uninstall for the last instance has been called.
 
Methods inherited from class org.openbp.jaspira.plugin.AbstractPlugin
addActionKeySequence, addPlugin, addToPeerGroup, canClose, closeCanceled, containsStackedEvent, fireEvent, fireEvent, fireEvent, getAction, getChildPlugins, getClassName, getCondition, getDescendantPlugins, getDescription, getEventActionNames, getEventModules, getExternalActions, getExternalEventModuleClasses, getIcon, getIcon, getLevel, getName, getOptionModules, getParentPlugin, getPeerGroup, getPeerGroupNames, getPeerGroups, getPluginResourceCollection, getPluginState, getSubClients, getSubTitle, getTitle, getUniqueId, getVendor, getVersion, handleEvent, handleKeySequence, inheritEvent, initializeFromPluginProfile, initializePlugin, initializeResources, installPlugin, installPluginContent, matchesPeerGroup, matchesPeerGroups, passDown, preClose, receiveEvent, removeFromPeerGroup, removePlugin, removeStackedEvent, requestClose, setDescription, setIcon, setName, setParentPlugin, setPluginState, setResourceCollection, setTitle, stackEvent, toString, uninstallPlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LINKTRACE_SKIP

public static final java.lang.Integer LINKTRACE_SKIP
Link trace flag: Skip link


LINKTRACE_TARGET

public static final java.lang.Integer LINKTRACE_TARGET
Link trace flag: Show link target only


LINKTRACE_ANIMATION_STOP

public static final java.lang.Integer LINKTRACE_ANIMATION_STOP
Link trace flag: Show link animation and stop at target


LINKTRACE_ANIMATION_GO

public static final java.lang.Integer LINKTRACE_ANIMATION_GO
Link trace flag: Show link animation and continue execution

Constructor Detail

DebuggerPlugin

public DebuggerPlugin()
Method Detail

getResourceCollectionContainerName

public java.lang.String getResourceCollectionContainerName()
Description copied from class: AbstractPlugin
Gets the name of the resource component the default resource of the plugin belongs to.

Specified by:
getResourceCollectionContainerName in class AbstractPlugin
Returns:
The container name

keepCompilerHappy

protected void keepCompilerHappy()

getExternalOptionModuleClasses

protected java.lang.Class[] getExternalOptionModuleClasses()
Description copied from class: AbstractPlugin
Returns a list of external option module classes of this plugin. Override this method to customize the plugin.

Overrides:
getExternalOptionModuleClasses in class AbstractPlugin
Returns:
An array of classes or null (the default) if the plugin doesn't declare external option modules. The returned classes need to subclass OptionModule .
See Also:
AbstractPlugin.getExternalOptionModuleClasses()

installFirstPlugin

public void installFirstPlugin()
Called when the first instance of this plugin is being created. Registers module with DebuggerService.

Specified by:
installFirstPlugin in interface Plugin
Overrides:
installFirstPlugin in class AbstractPlugin

pluginInstalled

protected void pluginInstalled()
Called after the install method of this plugin has been called.

Overrides:
pluginInstalled in class AbstractPlugin

pluginUninstalled

protected void pluginUninstalled()
Performs clean up (unregistering of decorators).

Overrides:
pluginUninstalled in class AbstractPlugin

uninstallLastPlugin

public void uninstallLastPlugin()
Called after uninstall for the last instance has been called.

Specified by:
uninstallLastPlugin in interface Plugin
Overrides:
uninstallLastPlugin in class AbstractPlugin

addBreakpoint

protected void addBreakpoint(ModelQualifier qualifier)
Adds a breakpoint and installs the breakpoint decorator.

Parameters:
qualifier - Model qualifier of the breakpoint to add


Copyright © 2011. All Rights Reserved.