|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.text.template.TemplateEngine
public class TemplateEngine
Nested Class Summary | |
---|---|
class |
TemplateEngine.CTemplateProposal
|
Constructor Summary | |
---|---|
TemplateEngine()
This is the default constructor used by the new content assist extension point |
|
TemplateEngine(org.eclipse.jface.text.templates.TemplateContextType contextType)
Creates the template engine for a particular context type. |
Method Summary | |
---|---|
void |
complete(org.eclipse.jface.text.ITextViewer viewer,
int completionPosition,
org.eclipse.cdt.core.model.ITranslationUnit translationUnit)
Inspects the context of the compilation unit around completionPosition
and feeds the collector with proposals. |
java.util.List |
getResults()
Returns the array of matching templates. |
void |
reset()
Empties the collector. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateEngine(org.eclipse.jface.text.templates.TemplateContextType contextType)
TemplateContext
for supported context types.
public TemplateEngine()
Method Detail |
---|
public void reset()
public java.util.List getResults()
public void complete(org.eclipse.jface.text.ITextViewer viewer, int completionPosition, org.eclipse.cdt.core.model.ITranslationUnit translationUnit)
completionPosition
and feeds the collector with proposals.
viewer
- the text viewercompletionPosition
- the context position in the document of the text viewertranslationUnit
- the translation unit (may be null
)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |