Module 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:
Since:
jEdit 4.3pre13
Version:
$Id: ActionContext.java 6884 2006-09-06 02:38:55Z ezust $
Author:
Slava Pestov
  • Constructor Details

    • JEditActionContext

      public JEditActionContext()
  • Method Details

    • invokeAction

      public abstract void invokeAction(EventObject evt, F action)
      Invokes the given action in response to a user-generated event.
      Parameters:
      evt - The event
      action - The action
      Since:
      jEdit 4.3pre13
    • addActionSet

      public void addActionSet(E actionSet)
      Parameters:
      actionSet - Adds a new action set to the context.
      Since:
      jEdit 4.3pre13
    • removeActionSet

      public void removeActionSet(E actionSet)
      Parameters:
      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(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(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 String[] getActionNames()
      Returns:
      all registered action names.