Class CodeEditorFactory
java.lang.Object
com.inductiveautomation.ignition.designer.scripteditor.component.CodeEditorFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Python code editor capable of compiling its text after keystrokes have stopped for one second. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.static com.jidesoft.editor.CodeEditor
Deprecated.static com.jidesoft.editor.CodeEditor
newExpressionLanguageEditor
(FunctionFactory functionFactory) static com.jidesoft.editor.CodeEditor
Deprecated.PreferPythonTextArea
for a newer implementation with less issues with font size/scaling and other editing niceties.static com.jidesoft.editor.CodeEditor
static com.jidesoft.editor.CodeEditor
-
Method Details
-
newPythonEditor
Deprecated.PreferPythonTextArea
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.PreferPythonTextArea
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.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)
-
PythonTextArea
for a newer implementation with less issues with font size/scaling and other editing niceties.