Module jEdit
Package org.gjt.sp.jedit
Class JEditActionContext<F extends JEditAbstractEditAction,E extends JEditActionSet<F>>
java.lang.Object
org.gjt.sp.jedit.JEditActionContext<F,E>
- Direct Known Subclasses:
ActionContext
public abstract class JEditActionContext<F extends JEditAbstractEditAction,E extends JEditActionSet<F>>
extends Object
Manages a collection of action sets. There are two instances of this class
in jEdit:
jEdit.getActionContext()
- editor actionsVFSBrowser.getActionContext()
- browser actions
- Since:
- jEdit 4.3pre13
- Version:
- $Id: ActionContext.java 6884 2006-09-06 02:38:55Z ezust $
- Author:
- Slava Pestov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionSet
(E actionSet) Returns the specified action.String[]
getActionSetForAction
(String action) Returns the action set that contains the specified action.E[]
abstract void
invokeAction
(EventObject evt, F action) Invokes the given action in response to a user-generated event.void
removeActionSet
(E actionSet)
-
Constructor Details
-
JEditActionContext
public JEditActionContext()
-
-
Method Details
-
invokeAction
Invokes the given action in response to a user-generated event.- Parameters:
evt
- The eventaction
- The action- Since:
- jEdit 4.3pre13
-
addActionSet
- Parameters:
actionSet
- Adds a new action set to the context.- Since:
- jEdit 4.3pre13
-
removeActionSet
- Parameters:
actionSet
- Removes an action set from the context.- Since:
- jEdit 4.23pre13
-
getActionSets
- Returns:
- all registered action sets.
- Since:
- jEdit 4.3pre13
-
getAction
Returns the specified action.- Parameters:
name
- The action name- Returns:
- a JEditAbstractEditAction or null if it doesn't exist
- Since:
- jEdit 4.3pre13
-
getActionSetForAction
Returns the action set that contains the specified action.- Parameters:
action
- The action- Returns:
- the actionSet that contains the given action
- Since:
- jEdit 4.3pre13
-
getActionNames
- Returns:
- all registered action names.
-