Class JoinLinesAction

All Implemented Interfaces:
IAction, IUpdate

public class JoinLinesAction extends TextEditorAction
Action for joining two or more lines together by deleting the line delimiters and trimming the whitespace between them.
Since:
3.3
  • Constructor Details

    • JoinLinesAction

      public JoinLinesAction(ResourceBundle bundle, String prefix, ITextEditor editor, String joint)
      Creates a line joining action.
      Parameters:
      bundle - the resource bundle for UI strings
      prefix - the prefix for the property keys into bundle
      editor - the editor
      joint - the string to put between the lines
  • 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:
    • update

      public void update()
      Description copied from class: TextEditorAction
      Always enables this action if it is connected to a text editor. If the associated editor is null, the action is disabled. Subclasses may override.
      Specified by:
      update in interface IUpdate
      Overrides:
      update in class TextEditorAction