org.sintef.mofscript.editor
Class MofScriptContentAssistProcessor.Validator

java.lang.Object
  extended by org.sintef.mofscript.editor.MofScriptContentAssistProcessor.Validator
All Implemented Interfaces:
org.eclipse.jface.text.contentassist.IContextInformationPresenter, org.eclipse.jface.text.contentassist.IContextInformationValidator
Enclosing class:
MofScriptContentAssistProcessor

protected static class MofScriptContentAssistProcessor.Validator
extends java.lang.Object
implements org.eclipse.jface.text.contentassist.IContextInformationValidator, org.eclipse.jface.text.contentassist.IContextInformationPresenter

Simple content assist tip closer. The tip is valid in a range of 5 characters around its popup location.


Field Summary
protected  int fInstallOffset
           
 
Constructor Summary
protected MofScriptContentAssistProcessor.Validator()
           
 
Method Summary
 void install(org.eclipse.jface.text.contentassist.IContextInformation info, org.eclipse.jface.text.ITextViewer viewer, int offset)
           
 boolean isContextInformationValid(int offset)
           
 boolean updatePresentation(int documentPosition, org.eclipse.jface.text.TextPresentation presentation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fInstallOffset

protected int fInstallOffset
Constructor Detail

MofScriptContentAssistProcessor.Validator

protected MofScriptContentAssistProcessor.Validator()
Method Detail

isContextInformationValid

public boolean isContextInformationValid(int offset)
Specified by:
isContextInformationValid in interface org.eclipse.jface.text.contentassist.IContextInformationValidator
Parameters:
offset -
See Also:
IContextInformationValidator.isContextInformationValid(int)

install

public void install(org.eclipse.jface.text.contentassist.IContextInformation info,
                    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
Parameters:
info -
viewer -
offset -
See Also:
IContextInformationValidator.install(IContextInformation, ITextViewer, int)

updatePresentation

public boolean updatePresentation(int documentPosition,
                                  org.eclipse.jface.text.TextPresentation presentation)
Specified by:
updatePresentation in interface org.eclipse.jface.text.contentassist.IContextInformationPresenter
Parameters:
documentPosition -
presentation -
See Also:
IContextInformationPresenter.updatePresentation(int, TextPresentation)