Module jEdit

Class Macros.Handler

java.lang.Object
org.gjt.sp.jedit.Macros.Handler
Enclosing class:
Macros

public abstract static class Macros.Handler extends Object
Encapsulates creating and invoking macros in arbitrary scripting languages
Since:
jEdit 4.0pre6
  • Constructor Details

    • Handler

      protected Handler(String name)
  • Method Details

    • getName

      public String getName()
    • getLabel

      public String getLabel()
    • accept

      public boolean accept(String path)
    • createMacro

      public abstract Macros.Macro createMacro(String macroName, String path)
    • runMacro

      public abstract void runMacro(View view, Macros.Macro macro)
      Runs the specified macro.
      Parameters:
      view - The view - may be null.
      macro - The macro.
    • runMacro

      public void runMacro(View view, Macros.Macro macro, boolean ownNamespace)
      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 call runMacro(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