Class RecenterAction

All Implemented Interfaces:
IAction, IUpdate

public class RecenterAction extends TextEditorAction
An action to handle emacs-like recenter. This function scrolls the selected window to put the cursor at the middle/top/bottom of the screen.
  • Constructor Details

    • RecenterAction

      public RecenterAction(ResourceBundle bundle, String prefix, ITextEditor editor)
      Creates a new action for the given text editor. The action configures its visual representation from the given resource bundle.
      bundle - the resource bundle
      prefix - a prefix to be prepended to the various resource keys (described in ResourceAction constructor), or null if none
      editor - the text editor
  • Method Details

    • run

      public void run()
      Description copied from class: Action
      The default implementation of this IAction method does nothing. Subclasses should override this method if they do not need information from the triggering event, or override runWithEvent(Event) if they do.
      Specified by:
      run in interface IAction
      run in class Action
      See Also: