org.eclipse.xtext.ui.editor.contentassist
Interface ISmartContextInformation
- All Superinterfaces:
- org.eclipse.jface.text.contentassist.IContextInformation, org.eclipse.jface.text.contentassist.IContextInformationExtension
- All Known Implementing Classes:
- ParameterContextInformation
public interface ISmartContextInformation
- extends org.eclipse.jface.text.contentassist.IContextInformation, org.eclipse.jface.text.contentassist.IContextInformationExtension
A smart context information allows to customize the strategy that determines
validity and that allows to update the presentation.
- Since:
- 2.3
- Author:
- Sebastian Zarnekow - Initial contribution and API
- See Also:
IContextInformationValidator
,
IContextInformationPresenter
Method Summary |
boolean |
isContextInformationValid(org.eclipse.jface.text.ITextViewer viewer,
int offset)
|
boolean |
updatePresentation(org.eclipse.jface.text.ITextViewer viewer,
int offset,
org.eclipse.jface.text.TextPresentation presentation)
|
Methods inherited from interface org.eclipse.jface.text.contentassist.IContextInformation |
equals, getContextDisplayString, getImage, getInformationDisplayString |
Methods inherited from interface org.eclipse.jface.text.contentassist.IContextInformationExtension |
getContextInformationPosition |
isContextInformationValid
boolean isContextInformationValid(org.eclipse.jface.text.ITextViewer viewer,
int offset)
- See Also:
IContextInformationValidator.isContextInformationValid(int)
updatePresentation
boolean updatePresentation(org.eclipse.jface.text.ITextViewer viewer,
int offset,
org.eclipse.jface.text.TextPresentation presentation)
- See Also:
IContextInformationPresenter.updatePresentation(int, TextPresentation)