Package org.csstudio.opibuilder.script
Class ScriptStoreFactory
java.lang.Object
org.csstudio.opibuilder.script.ScriptStoreFactory
The factory to return the corresponding script store according to the script type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScriptEngine
This method must be executed in UI Thread!static AbstractScriptStore
getScriptStore
(ScriptData scriptData, AbstractBaseEditPart editpart, IPV[] pvArray) This method must be called in UI Thread!static void
-
Constructor Details
-
ScriptStoreFactory
public ScriptStoreFactory()
-
-
Method Details
-
initPythonInterpreter
- Throws:
Exception
-
getScriptStore
public static AbstractScriptStore getScriptStore(ScriptData scriptData, AbstractBaseEditPart editpart, IPV[] pvArray) throws Exception This method must be called in UI Thread!- Parameters:
scriptData
-editpart
-pvArray
-- Returns:
- Throws:
Exception
-
getJavaScriptEngine
This method must be executed in UI Thread!- Returns:
- the JDK's Javascript script engine.
- Throws:
Exception
- on error, including invocation when not usingJavaScriptEngine.JDK
-