Class CaseAction

All Implemented Interfaces:
IAction, IUpdate

public class CaseAction extends TextEditorAction
Action that converts the current selection to lower case or upper case.
Since:
3.0
  • Constructor Details

    • CaseAction

      public CaseAction(ResourceBundle bundle, String prefix, AbstractTextEditor editor, boolean toUpper)
      Creates and initializes the action for the given text editor. The action configures its visual representation from the given resource bundle.
      Parameters:
      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
      toUpper - true if this is an uppercase action, false otherwise.
      See Also:
  • 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
      Overrides:
      run in class Action
      See Also: