Class BeanShellAction

    • Constructor Detail

      • BeanShellAction

        public BeanShellAction​(java.lang.String name,
                               java.lang.String code,
                               java.lang.String isSelected,
                               boolean noRepeat,
                               boolean noRecord,
                               boolean noRememberLast)
    • Method Detail

      • 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
      • isSelected

        public boolean isSelected​(java.awt.Component comp)
        Overrides:
        isSelected in class EditAction
        Parameters:
        comp - The component
        Returns:
        If this edit action is a toggle, returns if it is selected or not.
      • noRepeat

        public boolean noRepeat()
        Overrides:
        noRepeat in class EditAction
        Returns:
        if this edit action should not be repeated. Returns false by default.
      • noRecord

        public boolean noRecord()
        Overrides:
        noRecord in class EditAction
        Returns:
        if this edit action should not be recorded. Returns false by default.
      • noRememberLast

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

        public java.lang.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