public interface TestScriptDocument
DefaultStyledDocument
).T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Method and Description |
---|---|
String |
getIndentUnit()
Get a single indent unit, for example a sequence of three spaces.
|
String |
getSampleScriptText()
Get the sample script text.
|
String |
getSuggestedIndent(int offset)
Get suggested indent for the element at the specified offset.The method
should return a sequence of white characters (spaces) which should
precede any code inserted into the line.
|
boolean |
isAutoIndentEnabled()
Find out if auto indent is enabled.
|
boolean |
isBlockEnd(String insertedString)
Find out whether the inserted string represents end of a code block or
not.
|
void |
resetStyles(int offs,
int len) |
void |
resetStyles(UserConfiguration cfg) |
void |
setAutoIndentEnabled(boolean enabled)
Enable or disable auto indenting.
|
boolean |
supportsAutoIndent()
Find out whether the document supports auto indenting.
|
boolean supportsAutoIndent()
Find out whether the document supports auto indenting. If the method returns true the document must support the following actions:
void setAutoIndentEnabled(boolean enabled)
enabled
- true enables auto indenting, false disables.boolean isAutoIndentEnabled()
String getIndentUnit()
String getSuggestedIndent(int offset) throws BadLocationException
offset
- a position in the document.BadLocationException
- if the offset is out of the
document bounds.boolean isBlockEnd(String insertedString)
insertedString
- the string which is about to be inserted.String getSampleScriptText()
void resetStyles(UserConfiguration cfg)
void resetStyles(int offs, int len)