org.gjt.sp.jedit
Class BeanShellAction

java.lang.Object
  |
  +--org.gjt.sp.jedit.EditAction
        |
        +--org.gjt.sp.jedit.BeanShellAction

public class BeanShellAction
extends EditAction

An action that evaluates BeanShell code when invoked.

Version:
$Id: BeanShellAction.java,v 1.10 2003/02/17 01:04:27 spestov Exp $
Author:
Slava Pestov

Nested Class Summary
 
Nested classes inherited from class org.gjt.sp.jedit.EditAction
EditAction.Wrapper
 
Constructor Summary
BeanShellAction(java.lang.String name, java.lang.String code, java.lang.String isSelected, boolean noRepeat, boolean noRecord)
           
 
Method Summary
 java.lang.String getCode()
          Returns the BeanShell code that will replay this action.
 void invoke(View view)
          Invokes the action.
 boolean isSelected(View view)
          If this edit action is a toggle, returns if it is selected or not.
 boolean isToggle()
          Returns if this edit action should be displayed as a check box in menus.
 boolean noRecord()
          Returns if this edit action should not be recorded.
 boolean noRepeat()
          Returns if this edit action should not be repeated.
 
Methods inherited from class org.gjt.sp.jedit.EditAction
getLabel, getMouseOverText, getName, getView, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanShellAction

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

invoke

public void invoke(View view)
Description copied from class: EditAction
Invokes the action.

Specified by:
invoke in class EditAction
Parameters:
view - The view

isToggle

public boolean isToggle()
Description copied from class: EditAction
Returns if this edit action should be displayed as a check box in menus.

Overrides:
isToggle in class EditAction

isSelected

public boolean isSelected(View view)
Description copied from class: EditAction
If this edit action is a toggle, returns if it is selected or not.

Overrides:
isSelected in class EditAction
Parameters:
view - The view

noRepeat

public boolean noRepeat()
Description copied from class: EditAction
Returns if this edit action should not be repeated. Returns false by default.

Overrides:
noRepeat in class EditAction

noRecord

public boolean noRecord()
Description copied from class: EditAction
Returns if this edit action should not be recorded. Returns false by default.

Overrides:
noRecord in class EditAction

getCode

public java.lang.String getCode()
Description copied from class: EditAction
Returns the BeanShell code that will replay this action.

Specified by:
getCode in class EditAction