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:
-
Field Summary
Fields inherited from class org.gjt.sp.jedit.JEditAbstractEditAction
args, name
-
Constructor Summary
ConstructorDescriptionJEditBeanShellAction
(String name, String code, String isSelected, boolean noRepeat, boolean noRecord, boolean noRememberLast) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
void
Invokes the action.boolean
isSelected
(Component comp) boolean
noRecord()
boolean
Returns if this edit action should not be remembered as the most recently invoked action.boolean
noRepeat()
Methods inherited from class org.gjt.sp.jedit.JEditAbstractEditAction
getName, invoke, setName, toString
-
Constructor Details
-
JEditBeanShellAction
-
-
Method Details
-
invoke
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 classJEditAbstractEditAction<TextArea>
- Parameters:
textArea
- the argument
-
isSelected
-
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
-