Class ScriptStoreFactory

java.lang.Object
org.csstudio.opibuilder.script.ScriptStoreFactory

public class ScriptStoreFactory extends Object
The factory to return the corresponding script store according to the script type.
  • Constructor Details

    • ScriptStoreFactory

      public ScriptStoreFactory()
  • Method Details

    • initPythonInterpreter

      public static void initPythonInterpreter() throws Exception
      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

      public static ScriptEngine getJavaScriptEngine() throws Exception
      This method must be executed in UI Thread!
      Returns:
      the JDK's Javascript script engine.
      Throws:
      Exception - on error, including invocation when not using JavaScriptEngine.JDK