Class CodeEditorFactory.AutoCompileCodeEditor

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.jidesoft.editor.CodeEditor
com.inductiveautomation.ignition.designer.scripteditor.component.CodeEditorFactory.AutoCompileCodeEditor
All Implemented Interfaces:
com.jidesoft.editor.caret.CaretListener, com.jidesoft.editor.LineBreak, com.jidesoft.editor.selection.SelectionListener, com.jidesoft.search.FindResultIntepreter, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener
Enclosing class:
CodeEditorFactory

public static class CodeEditorFactory.AutoCompileCodeEditor extends com.jidesoft.editor.CodeEditor
Python code editor capable of compiling its text after keystrokes have stopped for one second. The first error found is underlined through the end of the line.

Add ScriptCompilerListeners to be notified with the error message when compilation has finished.

Use the .getMarkerArea().getMarkerStripe() component in order to display the error annotation next to the editor.

See Also:
  • Constructor Details

    • AutoCompileCodeEditor

      public AutoCompileCodeEditor(com.jidesoft.editor.DefaultSettings settings)
  • Method Details

    • getText

      public String getText()
      Overrides:
      getText in class com.jidesoft.editor.CodeEditor
    • dispose

      public void dispose()
      Overrides:
      dispose in class com.jidesoft.editor.CodeEditor
    • addCompilerListener

      public void addCompilerListener(ScriptCompilerListener listener)
    • removeCompilerListener

      public void removeCompilerListener(ScriptCompilerListener listener)
    • setAutoCompile

      public void setAutoCompile(boolean autoCompile)