Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gjt.sp.jedit
Class ActionContext  view ActionContext download ActionContext.java

java.lang.Object
  extended byorg.gjt.sp.jedit.ActionContext

public abstract class ActionContext
extends java.lang.Object

Manages a collection of action sets. There are two instances of this class in jEdit:

Since:
jEdit 4.2pre1
Version:
$Id: ActionContext.java,v 1.3 2003/05/01 02:21:26 spestov Exp $

Field Summary
(package private)  java.util.Hashtable actionHash
           
private  java.util.Vector actionSets
           
 
Constructor Summary
ActionContext()
           
 
Method Summary
 void addActionSet(ActionSet actionSet)
          Adds a new action set to the context.
 EditAction getAction(java.lang.String name)
          Returns the specified action.
 java.lang.String[] getActionNames()
          Returns all registered action names.
 ActionSet getActionSetForAction(java.lang.String action)
          Returns the action set that contains the specified action.
 ActionSet[] getActionSets()
          Returns all registered action sets.
abstract  void invokeAction(java.util.EventObject evt, EditAction action)
          Invokes the given action in response to a user-generated event.
 void removeActionSet(ActionSet actionSet)
          Removes an action set from the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionHash

java.util.Hashtable actionHash

actionSets

private java.util.Vector actionSets
Constructor Detail

ActionContext

public ActionContext()
Method Detail

invokeAction

public abstract void invokeAction(java.util.EventObject evt,
                                  EditAction action)
Invokes the given action in response to a user-generated event.

Since:
jEdit 4.2pre1

addActionSet

public void addActionSet(ActionSet actionSet)
Adds a new action set to the context.

Since:
jEdit 4.2pre1

removeActionSet

public void removeActionSet(ActionSet actionSet)
Removes an action set from the context.

Since:
jEdit 4.2pre1

getActionSets

public ActionSet[] getActionSets()
Returns all registered action sets.

Since:
jEdit 4.2pre1

getAction

public EditAction getAction(java.lang.String name)
Returns the specified action.

Since:
jEdit 4.2pre1

getActionSetForAction

public ActionSet getActionSetForAction(java.lang.String action)
Returns the action set that contains the specified action.

Since:
jEdit 4.2pre1

getActionNames

public java.lang.String[] getActionNames()
Returns all registered action names.