java.lang.Object
org.gjt.sp.jedit.JEditAbstractEditAction<E>
- Direct Known Subclasses:
EditAction
,JEditBeanShellAction
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 Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a new edit action with the specified name.protected
JEditAbstractEditAction
(String name, Object[] newArgs) -
Method Summary
-
Field Details
-
name
-
args
-
-
Constructor Details
-
JEditAbstractEditAction
Creates a new edit action with the specified name.- Parameters:
name
- The action name
-
JEditAbstractEditAction
-
-
Method Details
-
getName
Returns the internal name of this action.- Returns:
- the action name
-
setName
Changes the name of an action- Parameters:
newName
- the new name of the action- Since:
- jEdit 4.3pre4
-
invoke
Invokes the action. This is an implementation of the Command pattern, and concrete actions should override this.- Parameters:
arg
- the argument
-
invoke
- Parameters:
arg
- the arguments of the actionnewArgs
- new argument list
-
toString
-