java.lang.Object
org.gjt.sp.jedit.Macros.Handler
- Enclosing class:
Macros
Encapsulates creating and invoking macros in arbitrary scripting languages
- Since:
- jEdit 4.0pre6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract Macros.MacrocreateMacro(String macroName, String path) getLabel()getName()abstract voidrunMacro(View view, Macros.Macro macro) Runs the specified macro.voidrunMacro(View view, Macros.Macro macro, boolean ownNamespace) Runs the specified macro.
-
Constructor Details
-
Handler
-
-
Method Details
-
getName
-
getLabel
-
accept
-
createMacro
-
runMacro
Runs the specified macro.- Parameters:
view- The view - may be null.macro- The macro.
-
runMacro
Runs the specified macro. This method is optional; it is called if the specified macro is a startup script. The default behavior is to simply callrunMacro(View,Macros.Macro).- Parameters:
view- The view - may be null.macro- The macro.ownNamespace- A hint indicating whenever functions and variables defined in the script are to be self-contained, or made available to other scripts. The macro handler may ignore this parameter.- Since:
- jEdit 4.1pre3
-