Package org.apache.jmeter.gui.util
Class JSyntaxTextArea
java.lang.Object
RSyntaxTextArea
org.apache.jmeter.gui.util.JSyntaxTextArea
public class JSyntaxTextArea
extends RSyntaxTextArea
Utility class to handle RSyntaxTextArea code
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.JSyntaxTextArea
(int rows, int cols) Creates the default syntax highlighting text area.JSyntaxTextArea
(int rows, int cols, boolean disableUndo) Creates the default syntax highlighting text area. -
Method Summary
Modifier and TypeMethodDescriptionprotected RUndoManager
Override UndoManager to allow disabling if feature causes issues See https://github.com/bobbylight/RSyntaxTextArea/issues/19void
setInitialText
(String string) Sets initial text resetting undo historyvoid
setLanguage
(String language) Sets the language of the text area.
-
Constructor Details
-
JSyntaxTextArea
Deprecated. -
JSyntaxTextArea
public JSyntaxTextArea(int rows, int cols) Creates the default syntax highlighting text area. The following are set:- setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA)
- setCodeFoldingEnabled(true)
- setAntiAliasingEnabled(true)
- setLineWrap(true)
- setWrapStyleWord(true)
- Parameters:
rows
- The number of rows for the text areacols
- The number of columns for the text area
-
JSyntaxTextArea
public JSyntaxTextArea(int rows, int cols, boolean disableUndo) Creates the default syntax highlighting text area. The following are set:- setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA)
- setCodeFoldingEnabled(true)
- setAntiAliasingEnabled(true)
- setLineWrap(true)
- setWrapStyleWord(true)
- Parameters:
rows
- The number of rows for the text areacols
- The number of columns for the text areadisableUndo
- true to disable undo manager, defaults to false
-
-
Method Details
-
setLanguage
Sets the language of the text area.- Parameters:
language
- The language to be set
-
createUndoManager
protected RUndoManager createUndoManager()Override UndoManager to allow disabling if feature causes issues See https://github.com/bobbylight/RSyntaxTextArea/issues/19 -
setInitialText
Sets initial text resetting undo history- Parameters:
string
- The initial text to be set
-