Java 类org.eclipse.jface.text.contentassist.IContextInformationValidator 实例源码

项目:fluentmark    文件:MultiContentAssistProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    List<IContextInformationValidator> validators = null;
    for (IContentAssistProcessor delegate : delegates) {
        IContextInformationValidator validator = delegate.getContextInformationValidator();
        if (validator != null) {
            if (validators == null) {
                validators = new ArrayList<IContextInformationValidator>();
            }
        }
    }
    if (validators != null) {
        // FIXME: return a compound validator
        return validators.get(0);
    }
    return null;
}
项目:APICloud-Studio    文件:ContextInformationPopup.java   
/**
 * Creates a context frame for the given offset.
 * 
 * @param information
 *            the context information
 * @param offset
 *            the offset
 * @return the created context frame
 * @since 3.0
 */
private ContextFrame createContextFrame(IContextInformation information, int offset)
{
    IContextInformationValidator validator = fContentAssistSubjectControlAdapter.getContextInformationValidator(
            fContentAssistant, offset);

    if (validator != null)
    {
        int beginOffset = (information instanceof IContextInformationExtension) ? ((IContextInformationExtension) information)
                .getContextInformationPosition() : offset;
        if (beginOffset == -1)
        {
            beginOffset = offset;
        }
        int visibleOffset = fContentAssistSubjectControlAdapter.getWidgetSelectionRange().x
                - (offset - beginOffset);
        IContextInformationPresenter presenter = fContentAssistSubjectControlAdapter
                .getContextInformationPresenter(fContentAssistant, offset);
        return new ContextFrame(information, beginOffset, offset, visibleOffset, validator, presenter);
    }

    return null;
}
项目:APICloud-Studio    文件:ContextInformationPopup.java   
public ContextFrame(IContextInformation information, int beginOffset, int offset, int visibleOffset,
        IContextInformationValidator validator, IContextInformationPresenter presenter)
{
    fInformation = information;
    fBeginOffset = beginOffset;
    fOffset = offset;
    fVisibleOffset = visibleOffset;
    fValidator = validator;
    fPresenter = presenter;
}
项目:APICloud-Studio    文件:CSSContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator()
{
    if (this._validator == null)
    {
        this._validator = new CSSContextInformationValidator();
    }

    return this._validator;
}
项目:APICloud-Studio    文件:HTMLContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator()
{
    if (this._validator == null)
    {
        this._validator = new HTMLContextInformationValidator();
    }

    return this._validator;
}
项目:Pydev    文件:SimpleAssistProcessor.java   
/**
 * @return the validator we should use
 */
@Override
public IContextInformationValidator getContextInformationValidator() {
    final IContextInformationValidator defaultContextInformationValidator = defaultPythonProcessor
            .getContextInformationValidator();
    return new ContextInformationDelegator(defaultContextInformationValidator);
}
项目:Pydev    文件:PydevConsoleCompletionProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    if (contextInformationValidator == null) {
        contextInformationValidator = new PyContextInformationValidator();
    }

    return contextInformationValidator;
}
项目:n4js    文件:JSDocContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:eclipse-batch-editor    文件:BatchEditorSimpleWordContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:eclipse-bash-editor    文件:BashEditorSimpleWordContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:pgcodekeeper    文件:SQLEditorCompletionProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:vertigo-chroma-kspplugin    文件:BaseContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return new ContextInformationValidator(this);
}
项目:Tarski    文件:CodeCompletionProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:Tarski    文件:DefaultCompletionProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
  return null;
}
项目:Tarski    文件:CodeCompletionProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
  return null;
}
项目:Tarski    文件:MetaModelCompletionProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
  return null;
}
项目:ec4e    文件:EditorConfigContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:egradle    文件:GradleContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:eclipse-asciidoctools    文件:AsciidocContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:LibertyEiffel-Eclipse-Plugin    文件:EiffelContentAssistantProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    // TODO Auto-generated method stub
    return null;
}
项目:LibertyEiffel-Eclipse-Plugin    文件:EiffelContentAssistantProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {

    return null;
}
项目:DarwinSPL    文件:DwprofileCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:DarwinSPL    文件:HyexpressionCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:DarwinSPL    文件:HyvalidityformulaCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:DarwinSPL    文件:HydatavalueCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:DarwinSPL    文件:HymappingCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:DarwinSPL    文件:HyconstraintsCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:DarwinSPL    文件:HymanifestCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:http4e    文件:HContentAssistProcessor.java   
public IContextInformationValidator getContextInformationValidator(){
   return new ContextInformationValidator(this);
}
项目:http4e    文件:TagContentAssistProcessor.java   
public IContextInformationValidator getContextInformationValidator(){
    return null;
}
项目:http4e    文件:Ch5CompletionEditor.java   
public IContextInformationValidator getContextInformationValidator(){
   return contextInfoValidator;
}
项目:ftc    文件:TweakedTemplateCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:texlipse    文件:BibCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:texlipse    文件:TexMathCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
项目:texlipse    文件:TexCompletionProcessor.java   
public IContextInformationValidator getContextInformationValidator() {
    return new ContextInformationValidator(this);
}
项目:hybris-commerce-eclipse-plugin    文件:ImpexInstructionContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return iciv;
}
项目:hybris-commerce-eclipse-plugin    文件:ImpexCommandContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {

    return iciv;
}
项目:hybris-commerce-eclipse-plugin    文件:ImpexDataContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {

    return iciv;
}
项目:hybris-commerce-eclipse-plugin    文件:ImpexTypeSystemContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {
    return iciv;
}
项目:hybris-commerce-eclipse-plugin    文件:ImpexCommentContentAssistProcessor.java   
@Override
public IContextInformationValidator getContextInformationValidator() {

    return iciv;
}