See: Description
Package | Description |
---|---|
org.netbeans.lib.editor.codetemplates.api | |
org.netbeans.lib.editor.codetemplates.spi |
It is a module located under /cvs/editor/codetemplates directory.
It consists ofCode Templates define CodeTemplatesAPI.
Editor Code Templates API was created.
${...}
.
index
parameter which means that the infrastructure should fill in
a fresh index variable e.g. i
.
java.util.Collection
.
${i index}
or ${c instanceof=java.util.Collection}
.
${x default="Hello world"}
.
${x default="\"quoted string\""}
.
JTextComponent pane = ... String tempCodeTemplateText = ... CodeTemplate ct = CodeTemplateManager.get(pane.getDocument()).createTemporary(tempCodeTemplateText); ct.insert(pane);
editable
having
true
/false
.
|
|
The sources for the module are in the NetBeans Mercurial repositories.
Read more about the implementation in the answers to architecture questions.
Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.