Module jEdit

Class JEditAbstractEditAction<E>

java.lang.Object
org.gjt.sp.jedit.JEditAbstractEditAction<E>
Direct Known Subclasses:
EditAction, JEditBeanShellAction

public abstract class JEditAbstractEditAction<E> extends Object
An action that can be bound to a menu item, tool bar button or keystroke.
Since:
4.3pre13
Version:
$Id: EditAction.java 11177 2007-12-01 09:50:50Z k_satoda $
Author:
S. Pestov, M. Casanova, K. Satoda
See Also:
  • Field Details

    • name

      protected String name
    • args

      protected Object[] args
  • Constructor Details

    • JEditAbstractEditAction

      protected JEditAbstractEditAction(String name)
      Creates a new edit action with the specified name.
      Parameters:
      name - The action name
    • JEditAbstractEditAction

      protected JEditAbstractEditAction(String name, Object[] newArgs)
  • Method Details

    • getName

      public String getName()
      Returns the internal name of this action.
      Returns:
      the action name
    • setName

      public void setName(String newName)
      Changes the name of an action
      Parameters:
      newName - the new name of the action
      Since:
      jEdit 4.3pre4
    • invoke

      public abstract void invoke(E arg)
      Invokes the action. This is an implementation of the Command pattern, and concrete actions should override this.
      Parameters:
      arg - the argument
    • invoke

      public final void invoke(E arg, Object[] newArgs)
      Parameters:
      arg - the arguments of the action
      newArgs - new argument list
    • toString

      public String toString()
      Overrides:
      toString in class Object