Class Macros.Macro
java.lang.Object
org.gjt.sp.jedit.JEditAbstractEditAction<View>
org.gjt.sp.jedit.EditAction
org.gjt.sp.jedit.Macros.Macro
- Enclosing class:
Macros
Encapsulates the macro's label, name and path.
- Since:
- jEdit 2.2pre4
- Version:
- $Id: Macros.java 24477 2016-08-02 22:58:44Z daleanson $
- Author:
- Slava Pestov
-
Nested Class Summary
Nested classes/interfaces inherited from class EditAction
EditAction.Wrapper -
Field Summary
Fields inherited from class JEditAbstractEditAction
args, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()getPath()voidInvokes the action.static StringmacroNameToLabel(String macroName) Methods inherited from class EditAction
getLabel, getMouseOverText, getToolTip, isSelected, isToggle, noRecord, noRememberLast, noRepeatMethods inherited from class JEditAbstractEditAction
getName, invoke, setName, toString
-
Constructor Details
-
Macro
-
-
Method Details
-
getHandler
-
getPath
-
invoke
Description copied from class:EditActionInvokes the action. This is an implementation of the Command pattern, and concrete actions should override this.- Specified by:
invokein classEditAction- Parameters:
view- The view
-
getCode
- Overrides:
getCodein classEditAction- Returns:
- the BeanShell code that will replay this action. BeanShellAction.getCode() returns something more interesting for Actions that were loaded from the actions.xml file. You do not need to override this method if your action name is unique, this EditAction was added to an ActionSet and that to an ActionContext of jEdit. concrete since jEdit 4.3pre7
-
macroNameToLabel
-