com.aptana.ide.editor.js.contentassist
Class JSContextInformationValidator
java.lang.Object
com.aptana.ide.editor.js.contentassist.JSContextInformationValidator
- All Implemented Interfaces:
- org.eclipse.jface.text.contentassist.IContextInformationPresenter, org.eclipse.jface.text.contentassist.IContextInformationValidator
public class JSContextInformationValidator
- extends java.lang.Object
- implements org.eclipse.jface.text.contentassist.IContextInformationValidator, org.eclipse.jface.text.contentassist.IContextInformationPresenter
|
Method Summary |
void |
install(org.eclipse.jface.text.contentassist.IContextInformation contextInformation,
org.eclipse.jface.text.ITextViewer viewer,
int offset)
|
boolean |
isContextInformationValid(int offset)
|
boolean |
updatePresentation(int offset,
org.eclipse.jface.text.TextPresentation presentation)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSContextInformationValidator
public JSContextInformationValidator(JSContentAssistProcessor processor)
- Validates the info window, can add styling.
- Parameters:
processor -
install
public void install(org.eclipse.jface.text.contentassist.IContextInformation contextInformation,
org.eclipse.jface.text.ITextViewer viewer,
int offset)
- Specified by:
install in interface org.eclipse.jface.text.contentassist.IContextInformationPresenter- Specified by:
install in interface org.eclipse.jface.text.contentassist.IContextInformationValidator
- See Also:
IContextInformationValidator.install(org.eclipse.jface.text.contentassist.IContextInformation, org.eclipse.jface.text.ITextViewer, int)
isContextInformationValid
public boolean isContextInformationValid(int offset)
- Specified by:
isContextInformationValid in interface org.eclipse.jface.text.contentassist.IContextInformationValidator
- See Also:
IContextInformationValidator.isContextInformationValid(int)
updatePresentation
public boolean updatePresentation(int offset,
org.eclipse.jface.text.TextPresentation presentation)
- Specified by:
updatePresentation in interface org.eclipse.jface.text.contentassist.IContextInformationPresenter
- See Also:
IContextInformationPresenter.updatePresentation(int, org.eclipse.jface.text.TextPresentation)