Class CodeEditorFactory
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.scripteditor.component.CodeEditorFactory
-
public class CodeEditorFactory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CodeEditorFactory.AutoCompileCodeEditor
Python code editor capable of compiling its text after keystrokes have stopped for one second.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CodeEditorFactory.AutoCompileCodeEditor
newAutoCompilePythonEditor()
static com.jidesoft.editor.CodeEditor
newExpressionLanguageEditor()
Deprecated.static com.jidesoft.editor.CodeEditor
newExpressionLanguageEditor(FunctionFactory functionFactory)
static com.jidesoft.editor.CodeEditor
newPythonEditor()
Creates a new CodeEditor that is set up for Python editing.static com.jidesoft.editor.CodeEditor
newSQLEditor()
static com.jidesoft.editor.CodeEditor
newXMLEditor()
-
-
-
Method Detail
-
newPythonEditor
public static com.jidesoft.editor.CodeEditor newPythonEditor()
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
public static CodeEditorFactory.AutoCompileCodeEditor newAutoCompilePythonEditor()
-
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)
-
-