Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gjt.sp.jedit
Class BeanShellAction  view BeanShellAction download BeanShellAction.java

java.lang.Object
  extended byorg.gjt.sp.jedit.EditAction
      extended byorg.gjt.sp.jedit.BeanShellAction

public class BeanShellAction
extends EditAction

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,v 1.17 2003/07/17 23:49:44 spestov Exp $

Nested Class Summary
 
Nested classes inherited from class org.gjt.sp.jedit.EditAction
EditAction.Wrapper
 
Field Summary
private  bsh.BshMethod cachedCode
           
private  bsh.BshMethod cachedIsSelected
           
private  java.lang.String code
           
private  java.lang.String isSelected
           
private  boolean noRecord
           
private  boolean noRememberLast
           
private  boolean noRepeat
           
private  java.lang.String sanitizedName
           
 
Fields inherited from class org.gjt.sp.jedit.EditAction
 
Constructor Summary
BeanShellAction(java.lang.String name, java.lang.String code, java.lang.String isSelected, boolean noRepeat, boolean noRecord, boolean noRememberLast)
           
 
Method Summary
 java.lang.String getCode()
          Returns the BeanShell code that will replay this action.
 void invoke(View view)
          Invokes the action.
 boolean isSelected(java.awt.Component comp)
          If this edit action is a toggle, returns if it is selected or not.
 boolean noRecord()
          Returns if this edit action should not be recorded.
 boolean noRememberLast()
          Returns if this edit action should not be remembered as the most recently invoked action.
 boolean noRepeat()
          Returns if this edit action should not be repeated.
 
Methods inherited from class org.gjt.sp.jedit.EditAction
getLabel, getMouseOverText, getName, getView, isToggle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

noRepeat

private boolean noRepeat

noRecord

private boolean noRecord

noRememberLast

private boolean noRememberLast

code

private java.lang.String code

isSelected

private java.lang.String isSelected

cachedCode

private bsh.BshMethod cachedCode

cachedIsSelected

private bsh.BshMethod cachedIsSelected

sanitizedName

private java.lang.String sanitizedName
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.

Overrides:
invoke in class EditAction

isSelected

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

Overrides:
isSelected in class EditAction

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

noRememberLast

public boolean noRememberLast()
Returns if this edit action should not be remembered as the most recently invoked action.

Overrides:
noRememberLast in class EditAction
Since:
jEdit 4.2pre1

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