本文整理汇总了Java中org.eclipse.jface.text.contentassist.IContextInformationValidator类的典型用法代码示例。如果您正苦于以下问题:Java IContextInformationValidator类的具体用法?Java IContextInformationValidator怎么用?Java IContextInformationValidator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IContextInformationValidator类属于org.eclipse.jface.text.contentassist包,在下文中一共展示了IContextInformationValidator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
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;
}
示例2: createContextFrame
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
/**
* 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;
}
示例3: ContextFrame
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
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;
}
示例4: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator()
{
if (this._validator == null)
{
this._validator = new CSSContextInformationValidator();
}
return this._validator;
}
示例5: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator()
{
if (this._validator == null)
{
this._validator = new HTMLContextInformationValidator();
}
return this._validator;
}
示例6: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
/**
* @return the validator we should use
*/
@Override
public IContextInformationValidator getContextInformationValidator() {
final IContextInformationValidator defaultContextInformationValidator = defaultPythonProcessor
.getContextInformationValidator();
return new ContextInformationDelegator(defaultContextInformationValidator);
}
示例7: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
if (contextInformationValidator == null) {
contextInformationValidator = new PyContextInformationValidator();
}
return contextInformationValidator;
}
示例8: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
return null;
}
示例9: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
return null;
}
示例10: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
return new ContextInformationValidator(this);
}
示例11: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
return null;
}
示例12: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
// TODO Auto-generated method stub
return null;
}
示例13: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
return null;
}
示例14: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
public IContextInformationValidator getContextInformationValidator() {
return null;
}
示例15: getContextInformationValidator
import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
public IContextInformationValidator getContextInformationValidator(){
return new ContextInformationValidator(this);
}