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; }
/** * 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; }
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; }
@Override public IContextInformationValidator getContextInformationValidator() { if (this._validator == null) { this._validator = new CSSContextInformationValidator(); } return this._validator; }
@Override public IContextInformationValidator getContextInformationValidator() { if (this._validator == null) { this._validator = new HTMLContextInformationValidator(); } return this._validator; }
/** * @return the validator we should use */ @Override public IContextInformationValidator getContextInformationValidator() { final IContextInformationValidator defaultContextInformationValidator = defaultPythonProcessor .getContextInformationValidator(); return new ContextInformationDelegator(defaultContextInformationValidator); }
@Override public IContextInformationValidator getContextInformationValidator() { if (contextInformationValidator == null) { contextInformationValidator = new PyContextInformationValidator(); } return contextInformationValidator; }
@Override public IContextInformationValidator getContextInformationValidator() { return null; }
@Override public IContextInformationValidator getContextInformationValidator() { return new ContextInformationValidator(this); }
@Override public IContextInformationValidator getContextInformationValidator() { // TODO Auto-generated method stub return null; }
public IContextInformationValidator getContextInformationValidator() { return null; }
public IContextInformationValidator getContextInformationValidator(){ return new ContextInformationValidator(this); }
public IContextInformationValidator getContextInformationValidator(){ return null; }
public IContextInformationValidator getContextInformationValidator(){ return contextInfoValidator; }
public IContextInformationValidator getContextInformationValidator() { return new ContextInformationValidator(this); }
@Override public IContextInformationValidator getContextInformationValidator() { return iciv; }