Class AbstractRulerActionDelegate

    • Constructor Detail

      • AbstractRulerActionDelegate

        public AbstractRulerActionDelegate()
    • Method Detail

      • createAction

        protected abstract IAction createAction​(ITextEditor editor,
                                                IVerticalRulerInfo rulerInfo)
        The factory method creating the underlying action.
        Parameters:
        editor - the editor the action to be created will work on
        rulerInfo - the vertical ruler the action to be created will work on
        Returns:
        the created action
      • setActiveEditor

        public void setActiveEditor​(IAction callerAction,
                                    IEditorPart targetEditor)
        Description copied from interface: IEditorActionDelegate
        Sets the active editor for the delegate. Implementors should disconnect from the old editor, connect to the new editor, and update the action to reflect the new editor.
        Specified by:
        setActiveEditor in interface IEditorActionDelegate
        Parameters:
        callerAction - the action proxy that handles presentation portion of the action
        targetEditor - the new editor target
      • run

        public void run​(IAction callerAction)
        Description copied from class: ActionDelegate
        The ActionDelegate implementation of this IActionDelegate method does nothing. Subclasses may reimplement.

        Note: This method is not called directly by the proxy action. Only by the default implementation of runWithEvent of this abstract class.

        Specified by:
        run in interface IActionDelegate
        Overrides:
        run in class ActionDelegate
        Parameters:
        callerAction - the action proxy that handles the presentation portion of the action
      • runWithEvent

        public void runWithEvent​(IAction action,
                                 Event event)
        Description copied from class: ActionDelegate
        The ActionDelegate implementation of this IActionDelegate2 method redirects to the run method. Subclasses may reimplement.
        Specified by:
        runWithEvent in interface IActionDelegate2
        Overrides:
        runWithEvent in class ActionDelegate
        Parameters:
        action - the action proxy that handles the presentation portion of the action
        event - the SWT event which triggered this action being run
      • selectionChanged

        public void selectionChanged​(IAction action,
                                     ISelection selection)
        Description copied from class: ActionDelegate
        The ActionDelegate implementation of this IActionDelegate method does nothing. Subclasses may reimplement.
        Specified by:
        selectionChanged in interface IActionDelegate
        Overrides:
        selectionChanged in class ActionDelegate
        Parameters:
        action - the action proxy that handles presentation portion of the action
        selection - the current selection, or null if there is no selection.
      • menuAboutToShow

        public void menuAboutToShow​(IMenuManager manager)
        Description copied from interface: IMenuListener
        Notifies this listener that the menu is about to be shown by the given menu manager.
        Specified by:
        menuAboutToShow in interface IMenuListener
        Parameters:
        manager - the menu manager
      • mouseDown

        public void mouseDown​(MouseEvent e)
        Description copied from interface: MouseListener
        Sent when a mouse button is pressed.
        Specified by:
        mouseDown in interface MouseListener
        Parameters:
        e - an event containing information about the mouse button press
      • mouseUp

        public void mouseUp​(MouseEvent e)
        Description copied from interface: MouseListener
        Sent when a mouse button is released.
        Specified by:
        mouseUp in interface MouseListener
        Parameters:
        e - an event containing information about the mouse button release