|
org.netbeans.modules.editor.codetemplates/1 1.2.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.lib.editor.codetemplates.api.CodeTemplate
public final class CodeTemplate
Code template is represented by a parametrized text
that, after pre-processing, can be pasted into a given
text component.
Code template instances are either persistent (can be retrieved by
CodeTemplateManager.getCodeTemplates())
or temporary code templates that can be created
by CodeTemplateManager.createTemporary(String).
| Method Summary | |
|---|---|
String |
getAbbreviation()
Get abbreviation that triggers expansion of this code template. |
String |
getDescription()
Get textual description of this code template. |
String |
getParametrizedText()
Get the parametrized text of this code template. |
void |
insert(JTextComponent component)
Insert this code template into the given text component at the caret position. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void insert(JTextComponent component)
component - non-null text component.public String getAbbreviation()
public String getDescription()
public String getParametrizedText()
public String toString()
|
org.netbeans.modules.editor.codetemplates/1 1.2.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||