|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.ui.text.contentassist.ContentAssistInvocationContext
org.eclipse.cdt.internal.ui.text.contentassist.CContentAssistInvocationContext
public class CContentAssistInvocationContext
Describes the context of a content assist invocation in a C/C++ editor.
Clients may use but not subclass this class.
Constructor Summary | |
---|---|
CContentAssistInvocationContext(org.eclipse.jface.text.ITextViewer viewer,
int offset,
org.eclipse.ui.IEditorPart editor,
boolean isCompletion)
Creates a new context. |
|
CContentAssistInvocationContext(org.eclipse.cdt.core.model.ITranslationUnit unit,
boolean isCompletion)
Creates a new context. |
Method Summary | |
---|---|
void |
dispose()
Called upon completion of the content assist. |
org.eclipse.cdt.core.dom.ast.IASTCompletionNode |
getCompletionNode()
|
int |
getContextInformationOffset()
|
org.eclipse.ui.IEditorPart |
getEditor()
Get the editor content assist is invoked in. |
int |
getParseOffset()
|
org.eclipse.cdt.core.model.ICProject |
getProject()
Returns the project of the translation unit that content assist is invoked in, null if none. |
org.eclipse.cdt.core.model.ITranslationUnit |
getTranslationUnit()
Returns the translation unit that content assist is invoked in, null if there
is none. |
boolean |
isContextInformationStyle()
|
Methods inherited from class org.eclipse.cdt.ui.text.contentassist.ContentAssistInvocationContext |
---|
computeIdentifierPrefix, equals, getDocument, getInvocationOffset, getViewer, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CContentAssistInvocationContext(org.eclipse.jface.text.ITextViewer viewer, int offset, org.eclipse.ui.IEditorPart editor, boolean isCompletion)
viewer
- the viewer used by the editoroffset
- the invocation offseteditor
- the editor that content assist is invoked inpublic CContentAssistInvocationContext(org.eclipse.cdt.core.model.ITranslationUnit unit, boolean isCompletion)
unit
- the translation unit in document
Method Detail |
---|
public org.eclipse.cdt.core.model.ITranslationUnit getTranslationUnit()
null
if there
is none.
null
public org.eclipse.cdt.core.model.ICProject getProject()
null
if none.
null
public org.eclipse.cdt.core.dom.ast.IASTCompletionNode getCompletionNode()
public int getParseOffset()
public int getContextInformationOffset()
public org.eclipse.ui.IEditorPart getEditor()
null
public boolean isContextInformationStyle()
public void dispose()
ContentAssistInvocationContext
dispose
in class ContentAssistInvocationContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |