java.lang.Object
com.inductiveautomation.ignition.designer.scripteditor.component.CodeEditorFactory

public class CodeEditorFactory extends Object
  • Method Details

    • newPythonEditor

      @Deprecated(since="8.1.18") public static com.jidesoft.editor.CodeEditor newPythonEditor()
      Deprecated.
      Prefer PythonTextArea for a newer implementation with less issues with font size/scaling and other editing niceties.
      Creates a new CodeEditor that is set up for Python editing. This code editor will also underline the 1st syntax error, if there is one. You may also get a gutter out of this code editor and place it to the right of the code editor if you wish, for example:

       CodeEditor editor CodeEditorFactory.newPythonEditor();
       MarkerStripe stripe = editor.getMarkerArea().getMarkerStripe();
       stripe.setPreferredSize(new Dimension(10, 100));
      
       JPanel panel = new JPanel(new BorderLayout());
       panel.add(editor, BorderLayout.CENTER);
       panel.add(stripe, BorderLayout.EAST);
      
       
    • newXMLEditor

      public static com.jidesoft.editor.CodeEditor newXMLEditor()
    • newAutoCompilePythonEditor

      @Deprecated(since="8.1.18") public static CodeEditorFactory.AutoCompileCodeEditor newAutoCompilePythonEditor()
      Deprecated.
      Prefer PythonTextArea for a newer implementation with less issues with font size/scaling and other editing niceties.
    • newSQLEditor

      public static com.jidesoft.editor.CodeEditor newSQLEditor()
    • newExpressionLanguageEditor

      @Deprecated public static com.jidesoft.editor.CodeEditor newExpressionLanguageEditor()
      Deprecated.
      Deprecated as of 7.6. The other version of a function should be called, with a function factory provided by the scope context.
    • newExpressionLanguageEditor

      public static com.jidesoft.editor.CodeEditor newExpressionLanguageEditor(FunctionFactory functionFactory)