|
Eclipse JDT Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.contentassist.ContentAssistInvocationContext
org.eclipse.jface.text.contentassist.TextContentAssistInvocationContext
org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext
Describes the context of a content assist invocation in a Java editor. The context knows the
compilation unit, the
proposal collector used to get Java core proposals and the
core completion context received from core.
Clients may use this class.
XXX this API is provisional and may change anytime during the course of 3.2
| Constructor Summary | |
|---|---|
JavaContentAssistInvocationContext(ITextViewer viewer,
int offset,
IEditorPart editor)
Creates a new context. |
|
| Method Summary | |
|---|---|
ICompilationUnit |
computeCompilationUnit()
Returns the compilation unit that content assist is invoked in. |
CompletionProposalCollector |
getCollector()
Returns the compeletion requestor that was used to get core proposals, or null
if no core proposals have been requested. |
CompletionContext |
getContext()
Returns the core completion context if available, null
otherwise. |
void |
setCollector(CompletionProposalCollector collector)
XXX internal - do not use |
| Methods inherited from class org.eclipse.jface.text.contentassist.TextContentAssistInvocationContext |
|---|
computeIdentifierPrefix, equals, getDocument, getInvocationOffset, getViewer, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JavaContentAssistInvocationContext(ITextViewer viewer,
int offset,
IEditorPart editor)
viewer - the viewer used by the editoroffset - the invocation offseteditor - the editor that content assist is invoked in| Method Detail |
public ICompilationUnit computeCompilationUnit()
public CompletionProposalCollector getCollector()
null
if no core proposals have been requested.
nullpublic void setCollector(CompletionProposalCollector collector)
public CompletionContext getContext()
core completion context if available, null
otherwise. Shortcut for getCollector().getContext().
null otherwise
|
Eclipse JDT Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||