Class ClearOutputAction

All Implemented Interfaces:
IAction

public class ClearOutputAction extends Action
Clears the output in a text console.

Clients may instantiate this class.

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.
  • Constructor Details

    • ClearOutputAction

      public ClearOutputAction(TextConsole ioConsole)
      Constructs a clear output action for an I/O console. Clearing an I/O console is performed via API on the IOConsole, rather than clearing its document directly.
      Parameters:
      ioConsole - I/O console the action is associated with
      Since:
      3.1
    • ClearOutputAction

      public ClearOutputAction(ITextViewer viewer)
      Constructs an action to clear the document associated with a text viewer.
      Parameters:
      viewer - viewer whose document this action is associated with
  • 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: