|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.templates.TemplateContext
org.eclipse.jface.text.templates.DocumentTemplateContext
org.eclipse.cdt.internal.corext.template.c.TranslationUnitContext
public abstract class TranslationUnitContext
A translation unit context.
Method Summary | |
---|---|
boolean |
canEvaluate(org.eclipse.jface.text.templates.Template template)
|
org.eclipse.cdt.core.model.ICElement |
findEnclosingElement(int elementType)
Returns the enclosing element of a particular element type, null
if no enclosing element of that type exists. |
java.lang.String |
getKey()
|
org.eclipse.cdt.core.model.ITranslationUnit |
getTranslationUnit()
Returns the translation unit if one is associated with this context, null otherwise. |
void |
setForceEvaluation(boolean evaluate)
Sets whether evaluation is forced or not. |
Methods inherited from class org.eclipse.jface.text.templates.DocumentTemplateContext |
---|
evaluate, getCompletionLength, getCompletionOffset, getDocument, getEnd, getStart |
Methods inherited from class org.eclipse.jface.text.templates.TemplateContext |
---|
getContextType, getVariable, isReadOnly, setReadOnly, setVariable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean canEvaluate(org.eclipse.jface.text.templates.Template template)
canEvaluate
in class org.eclipse.jface.text.templates.DocumentTemplateContext
public java.lang.String getKey()
getKey
in class org.eclipse.jface.text.templates.DocumentTemplateContext
public final org.eclipse.cdt.core.model.ITranslationUnit getTranslationUnit()
null
otherwise.
public org.eclipse.cdt.core.model.ICElement findEnclosingElement(int elementType)
null
if no enclosing element of that type exists.
public void setForceEvaluation(boolean evaluate)
evaluate
- true
in order to force evaluation,
false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |