Class EditAction.Wrapper
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.
- Version:
- $Id: EditAction.java 24750 2017-10-12 09:46:15Z ezust $
- Author:
- Slava Pestov
-
Constructor Summary
ConstructorsConstructorDescriptionWrapper(ActionContext context, String actionName) Creates a new action listener wrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled 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:
actionPerformedin interfaceActionListener- Parameters:
evt- The action event
-