Interface IDebugView

All Superinterfaces:
IAdaptable, IPersistable, IViewPart, IWorkbenchPart
All Known Implementing Classes:
AbstractDebugView

public interface IDebugView extends IViewPart
Common function for debug views. Provides access to the underlying viewer and debug model presentation being used by a viewer. This allows clients to do such things as add and remove filters to a viewer, and configure a debug model presentation.

Clients may implement this interface. Generally, clients should subclass AbstractDebugView when creating a new debug view.

Since:
2.0
See Also:
  • Field Details

    • COPY_ACTION

      static final String COPY_ACTION
      Action id for a view's copy action. Any view with a copy action that should be invoked when CTRL+C is pressed should store their copy action with this key.
      See Also:
    • CUT_ACTION

      static final String CUT_ACTION
      Action id for a view's cut action. Any view with a cut action that should be invoked when CTRL+X is pressed should store their cut action with this key.
      See Also:
    • DOUBLE_CLICK_ACTION

      static final String DOUBLE_CLICK_ACTION
      Action id for a view's double-click action. Any view with an action that should be invoked when the mouse is double-clicked should store their double-click action with this key.
      See Also:
    • FIND_ACTION

      static final String FIND_ACTION
      Action id for a view's find action. Any view with a find action that should be invoked when CTRL+F is pressed should store their find action with this key.
      See Also:
    • PASTE_ACTION

      static final String PASTE_ACTION
      Action id for a view's paste action. Any view with a paste action that should be invoked when CTRL+V is pressed should store their paste action with this key.
      See Also:
    • REMOVE_ACTION

      static final String REMOVE_ACTION
      Action id for a view's remove action. Any view with a remove action that should be invoked when the delete key is pressed should store their remove action with this key.
      See Also:
    • SELECT_ALL_ACTION

      static final String SELECT_ALL_ACTION
      Action id for a view's select all action. Any view with a select all action that should be invoked when CTRL+A is pressed should store their select all action with this key.
      See Also:
  • Method Details

    • getViewer

      Viewer getViewer()
      Returns the viewer contained in this debug view.
      Returns:
      viewer
    • getPresentation

      IDebugModelPresentation getPresentation(String id)
      Returns the debug model presentation for this view specified by the debug model identifier.
      Parameters:
      id - the debug model identifier that corresponds to the id attribute of a debug model presentation extension
      Returns:
      the debug model presentation, or null if no presentation is registered for the specified id
    • setAction

      void setAction(String actionID, IAction action)
      Installs the given action under the given action id. If the action has an id that maps to one of the global action ids defined by this interface, the action is registered as a global action handler. If the action is an instance of IUpdate it is added/remove from the collection of updateables associated with this view.
      Parameters:
      actionID - the action id
      action - the action, or null to clear it
      See Also:
    • add

      void add(IUpdate updatable)
      Adds the given IUpdate to this view's collection of updatable objects. Allows the view to periodically update these registered objects. Has no effect if an identical IUpdate is already registered.
      Parameters:
      updatable - The IUpdate instance to be added
    • remove

      void remove(IUpdate updatable)
      Removes the given IUpdate from this view's collection of updatable objects. Has no effect if an identical IUpdate was not already registered.
      Parameters:
      updatable - The IUpdate instance to be removed
    • getAction

      IAction getAction(String actionID)
      Returns the action installed under the given action id.
      Parameters:
      actionID - the action id
      Returns:
      the action, or null if none
      See Also:
    • getContextMenuManager

      @Deprecated IMenuManager getContextMenuManager()
      Deprecated.
      See AbstractDebugView#getContextMenuManagers()
      Returns the context menu manager for this view.
      Returns:
      the context menu manager for this view, or null if none