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 java.lang.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
Constructors Constructor Description JEditActionContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addActionSet(E actionSet)
Adds a new action set to the context.F
getAction(java.lang.String name)
Returns the specified action.java.lang.String[]
getActionNames()
Returns all registered action names.E
getActionSetForAction(java.lang.String action)
Returns the action set that contains the specified action.E[]
getActionSets()
Returns all registered action sets.abstract void
invokeAction(java.util.EventObject evt, F action)
Invokes the given action in response to a user-generated event.void
removeActionSet(E actionSet)
Removes an action set from the context.
-
-
-
Method Detail
-
invokeAction
public abstract void invokeAction(java.util.EventObject evt, F action)
Invokes the given action in response to a user-generated event.- Parameters:
evt
- The eventaction
- The action- Since:
- jEdit 4.3pre13
-
addActionSet
public void addActionSet(E actionSet)
Adds a new action set to the context.- Since:
- jEdit 4.3pre13
-
removeActionSet
public void removeActionSet(E actionSet)
Removes an action set from the context.- Since:
- jEdit 4.23pre13
-
getActionSets
public E[] getActionSets()
Returns all registered action sets.- Since:
- jEdit 4.3pre13
-
getAction
public F getAction(java.lang.String name)
Returns the specified action.- Parameters:
name
- The action name- Returns:
- a JEditAbstractEditAction or null if it doesn't exist
- Since:
- jEdit 4.3pre13
-
getActionSetForAction
public E getActionSetForAction(java.lang.String action)
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
public java.lang.String[] getActionNames()
Returns all registered action names.
-
-