java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.designer.scripteditor.component.ExtensionCodeEditor
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

@Deprecated(since="8.1.18") public class ExtensionCodeEditor extends JPanel
Deprecated.
Prefer ExtensionFunctionPanel - API is similar, but layout is more flexible.
This wrapper around a python code editor allows for a special "locked" section of text at the beginning. The locked section is expected to be python-style docstring with triple quotes surrounding it. Use headerBuilder() to build the docstring in a consistent format.
See Also:
  • Constructor Details

    • ExtensionCodeEditor

      public ExtensionCodeEditor(DesignerContext context)
      Deprecated.
    • ExtensionCodeEditor

      public ExtensionCodeEditor(DesignerContext context, boolean useGatewayHints)
      Deprecated.
  • Method Details

    • createCodeEditor

      protected com.jidesoft.editor.CodeEditor createCodeEditor()
      Deprecated.
      Creates a code editor and installs the scripting hints on it.
    • setEnabled

      public void setEnabled(boolean enabled)
      Deprecated.
      Overrides:
      setEnabled in class JComponent
    • setAutoAdjustLineNumbers

      public void setAutoAdjustLineNumbers(boolean auto)
      Deprecated.
      Automatically shift line numbers in the margin to start after the doc string header
    • setScript

      public void setScript(String script)
      Deprecated.
    • setScript

      public void setScript(String script, boolean updateRestrictions)
      Deprecated.
    • getScript

      public String getScript()
      Deprecated.
      Gets the entire script (header + user entered section)
    • getUserScript

      public String getUserScript()
      Deprecated.
      Returns only the portion of the script that the user enters (everything after the docstring)
    • getEditor

      public com.jidesoft.editor.CodeEditor getEditor()
      Deprecated.
      Access to the underlying code editor
    • headerBuilder

      public static ExtensionCodeEditor.FunctionHeaderBuilder headerBuilder()
      Deprecated.