程序包 | 说明 |
---|---|
com.fr.design.gui.syntax.ui.rsyntaxtextarea |
A syntax-highlighting text editor.
|
com.fr.design.gui.syntax.ui.rsyntaxtextarea.templates |
Facilitates adding code templates to an
RSyntaxTextArea . |
限定符和类型 | 方法和说明 |
---|---|
CodeTemplate |
CodeTemplateManager.getTemplate(RSyntaxTextArea textArea)
Returns the template that should be inserted at the current caret
position, assuming the trigger character was pressed.
|
CodeTemplate[] |
CodeTemplateManager.getTemplates()
Returns the templates currently available.
|
CodeTemplate |
CodeTemplateManager.removeTemplate(java.lang.String id)
Returns the code template with the specified id.
|
限定符和类型 | 方法和说明 |
---|---|
void |
CodeTemplateManager.addTemplate(CodeTemplate template)
Registers the specified template with this template manager.
|
boolean |
CodeTemplateManager.removeTemplate(CodeTemplate template)
Returns the specified code template.
|
void |
CodeTemplateManager.replaceTemplates(CodeTemplate[] newTemplates)
Replaces the current set of available templates with the ones
specified.
|
限定符和类型 | 类和说明 |
---|---|
class |
AbstractCodeTemplate
A base class to build code templates on top of.
|
class |
StaticCodeTemplate
A code template that inserts static text before and after the caret.
|
限定符和类型 | 方法和说明 |
---|---|
int |
AbstractCodeTemplate.compareTo(CodeTemplate o)
Compares the
StaticCodeTemplate to another. |