Module jEdit

Class Macros.Macro

Enclosing class:
Macros

public static class Macros.Macro extends EditAction
Encapsulates the macro's label, name and path.
Since:
jEdit 2.2pre4
  • Constructor Details

  • Method Details

    • getHandler

      public Macros.Handler getHandler()
    • getPath

      public String getPath()
    • invoke

      public void invoke(View view)
      Description copied from class: EditAction
      Invokes the action. This is an implementation of the Command pattern, and concrete actions should override this.
      Specified by:
      invoke in class EditAction
      Parameters:
      view - The view
    • getCode

      public String getCode()
      Overrides:
      getCode in class EditAction
      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

      public static String macroNameToLabel(String macroName)
    • getLabel

      public String getLabel()
      Overrides:
      getLabel in class EditAction
      Returns:
      the action's label. This returns the value of the property named by JEditAbstractEditAction.getName() suffixed with .label.