public class RunJythonScriptStandardHandler extends RunJythonScriptBasicHandler
The jython script must be in the SCRIPT_PARAM command parameter.
Used parameters:
accept(List, IModule)
isActiveFor(List, IModule)
The scripts are run with the bindings configured by RunJythonScriptBasicHandler.configure(ScriptEngine, List, IModule).
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACCEPT_PARAM
Command parameter containing the Jython script called by
accept(List, IModule). |
static java.lang.String |
IS_ACTIVE_FOR_PARAM
Command parameter containing the Jython script called by
isActiveFor(List, IModule). |
SCRIPT_PARAM| Constructor and Description |
|---|
RunJythonScriptStandardHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.util.List<MObject> selectedElements,
IModule module)
The handler accepts elements matching at least one scope
|
boolean |
isActiveFor(java.util.List<MObject> selectedElements,
IModule module)
The handler is active by default.
|
actionPerformed, configure, runBooleanScriptfindStereotypeFromSpec, getParameter, getParameters, getScopes, initializepublic static final java.lang.String IS_ACTIVE_FOR_PARAM
isActiveFor(List, IModule).public static final java.lang.String ACCEPT_PARAM
accept(List, IModule).public boolean accept(java.util.List<MObject> selectedElements, IModule module)
DefaultModuleCommandHandleraccept in interface IModuleCommandHandleraccept in class DefaultModuleCommandHandlerselectedElements - Current selectionmodule - Owner of the commandpublic boolean isActiveFor(java.util.List<MObject> selectedElements, IModule module)
DefaultModuleCommandHandlerisActiveFor in interface IModuleCommandHandlerisActiveFor in class DefaultModuleCommandHandlerselectedElements - Current selectionmodule - Owner of the command