| java.lang.Object org.eclipse.jdt.internal.ui.text.template.contentassist.TemplateEngine
TemplateEngine | public class TemplateEngine (Code) | | |
Constructor Summary | |
public | TemplateEngine(TemplateContextType contextType) Creates the template engine for the given contextType . |
Method Summary | |
public void | complete(ITextViewer viewer, int completionPosition, ICompilationUnit compilationUnit) Inspects the context of the compilation unit around completionPosition
and feeds the collector with proposals. | public TemplateProposal[] | getResults() Returns the array of matching templates. | public void | reset() Empties the collector. |
TemplateEngine | public TemplateEngine(TemplateContextType contextType)(Code) | | Creates the template engine for the given contextType .
The JavaPlugin.getDefault().getTemplateContextRegistry()
defines the supported context types.
Parameters: contextType - the context type |
complete | public void complete(ITextViewer viewer, int completionPosition, ICompilationUnit compilationUnit)(Code) | | Inspects the context of the compilation unit around completionPosition
and feeds the collector with proposals.
Parameters: viewer - the text viewer Parameters: completionPosition - the context position in the document of the text viewer Parameters: compilationUnit - the compilation unit (may be null ) |
getResults | public TemplateProposal[] getResults()(Code) | | Returns the array of matching templates.
the template proposals |
reset | public void reset()(Code) | | Empties the collector.
|
|
|