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 Detail

      • 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 Detail

      • 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:
        How radio buttons are handled, How check boxes are handled
      • 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