java.lang.Object
org.gjt.sp.jedit.EditAction.Wrapper
- All Implemented Interfaces:
ActionListener
,EventListener
- Enclosing class:
- EditAction
'Wrap' EditActions in this class to turn them into AWT
ActionListeners, that can be attached to buttons, menu items, etc.
-
Constructor Summary
ConstructorDescriptionWrapper
(ActionContext context, String actionName) Creates a new action listener wrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the user selects this action from a menu.
-
Constructor Details
-
Wrapper
Creates a new action listener wrapper.- Parameters:
context
- the action contextactionName
- the name of the action- Since:
- jEdit 4.2pre1
-
-
Method Details
-
actionPerformed
Called when the user selects this action from a menu. It passes the action through theInputHandler.invokeAction(EditAction)
method, which performs any recording or repeating.- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
evt
- The action event
-