Class ExecutePythonScriptAction
java.lang.Object
org.csstudio.opibuilder.widgetActions.AbstractWidgetAction
org.csstudio.opibuilder.widgetActions.AbstractExecuteScriptAction
org.csstudio.opibuilder.widgetActions.ExecutePythonScriptAction
- All Implemented Interfaces:
IAdaptable
The action executing python script.
-
Field Summary
Fields inherited from class org.csstudio.opibuilder.widgetActions.AbstractExecuteScriptAction
PROP_EMBEDDED, PROP_PATH, PROP_SCRIPT_TEXT
Fields inherited from class org.csstudio.opibuilder.widgetActions.AbstractWidgetAction
PROP_DESCRIPTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractWidgetProperty<?>
createEmbeddedScriptProperty
(String prop_id, String description, WidgetPropertyCategory category, String defaultValue) void
dispose()
Dispose of all resources allocated by this action.protected String
void
run()
void
runTask()
Methods inherited from class org.csstudio.opibuilder.widgetActions.AbstractExecuteScriptAction
closeReader, configureProperties, getAbsolutePath, getDefaultDescription, getInputStream, getPath, getReader, getScriptText, isEmbedded
Methods inherited from class org.csstudio.opibuilder.widgetActions.AbstractWidgetAction
addProperty, getAdapter, getAllProperties, getAllPropertyIDs, getCopy, getDescription, getProperty, getPropertyValue, getWidgetModel, isEnabled, setEnabled, setPropertyValue, setWidgetModel
-
Constructor Details
-
ExecutePythonScriptAction
public ExecutePythonScriptAction()
-
-
Method Details
-
getActionType
- Specified by:
getActionType
in classAbstractWidgetAction
-
createEmbeddedScriptProperty
protected AbstractWidgetProperty<?> createEmbeddedScriptProperty(String prop_id, String description, WidgetPropertyCategory category, String defaultValue) - Specified by:
createEmbeddedScriptProperty
in classAbstractExecuteScriptAction
-
run
public void run()- Specified by:
run
in classAbstractWidgetAction
-
runTask
public void runTask() -
getFileExtension
- Specified by:
getFileExtension
in classAbstractExecuteScriptAction
-
dispose
public void dispose()Description copied from class:AbstractWidgetAction
Dispose of all resources allocated by this action.- Overrides:
dispose
in classAbstractWidgetAction
-