|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface IContentAssistInvocationContext
Describes the context of an invocation of content assist in a text viewer. And provides methods useful in calculating content assist proposals.
| Method Summary | |
|---|---|
java.lang.Object |
getAst()
Returns an AST representation of the source code. |
org.eclipse.jface.text.IDocument |
getDocument()
Returns the document that content assist is invoked on, or null if not known. |
int |
getInvocationOffset()
Returns the invocation offset. |
java.lang.String |
getTemplateContextId()
Returns the template invocation context for this offset. |
java.util.List<SimpleCompletionProposal> |
getVariableCompletionProposals(int offset,
java.lang.String prefix)
Returns a list of simple proposals for the variables valid at the specified offset. |
org.eclipse.jface.text.ITextViewer |
getViewer()
Returns the viewer, null if not available. |
| Method Detail |
|---|
int getInvocationOffset()
org.eclipse.jface.text.ITextViewer getViewer()
null if not available.
nullorg.eclipse.jface.text.IDocument getDocument()
null if not known.
nulljava.lang.String getTemplateContextId()
java.lang.Object getAst()
java.util.List<SimpleCompletionProposal> getVariableCompletionProposals(int offset,
java.lang.String prefix)
ECompletionProposalType
offset - the offset used to calculate the scope from which to pull the variable list.prefix - A prefix used to filter the names of the variables
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||