Module jEdit

Class JEditBeanShellAction


public class JEditBeanShellAction extends JEditAbstractEditAction<TextArea>
An action that evaluates BeanShell code when invoked. BeanShell actions are usually loaded from actions.xml and browser.actions.xml files; see ActionSet for syntax information.
Version:
$Id: BeanShellAction.java 10803 2007-10-04 20:45:31Z kpouer $
Author:
Slava Pestov, Matthieu Casanova
See Also:
  • Constructor Details

    • JEditBeanShellAction

      public JEditBeanShellAction(String name, String code, String isSelected, boolean noRepeat, boolean noRecord, boolean noRememberLast)
  • Method Details

    • invoke

      public void invoke(TextArea textArea)
      Description copied from class: JEditAbstractEditAction
      Invokes the action. This is an implementation of the Command pattern, and concrete actions should override this.
      Specified by:
      invoke in class JEditAbstractEditAction<TextArea>
      Parameters:
      textArea - the argument
    • isSelected

      public boolean isSelected(Component comp)
    • noRepeat

      public boolean noRepeat()
    • noRecord

      public boolean noRecord()
    • noRememberLast

      public boolean noRememberLast()
      Returns if this edit action should not be remembered as the most recently invoked action.
      Since:
      jEdit 4.2pre1
    • getCode

      public String getCode()