当前位置: 首页>>代码示例>>Java>>正文


Java IContextInformationValidator类代码示例

本文整理汇总了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;
}
 
开发者ID:grosenberg,项目名称:fluentmark,代码行数:17,代码来源:MultiContentAssistProcessor.java

示例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;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:33,代码来源:ContextInformationPopup.java

示例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;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:11,代码来源:ContextInformationPopup.java

示例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;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:11,代码来源:CSSContentAssistProcessor.java

示例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;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:11,代码来源:HTMLContentAssistProcessor.java

示例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);
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:10,代码来源:SimpleAssistProcessor.java

示例7: getContextInformationValidator

import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
    if (contextInformationValidator == null) {
        contextInformationValidator = new PyContextInformationValidator();
    }

    return contextInformationValidator;
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:9,代码来源:PydevConsoleCompletionProcessor.java

示例8: getContextInformationValidator

import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
	return null;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:5,代码来源:JSDocContentAssistProcessor.java

示例9: getContextInformationValidator

import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
 
开发者ID:pgcodekeeper,项目名称:pgcodekeeper,代码行数:5,代码来源:SQLEditorCompletionProcessor.java

示例10: getContextInformationValidator

import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
	return new ContextInformationValidator(this);
}
 
开发者ID:sebez,项目名称:vertigo-chroma-kspplugin,代码行数:5,代码来源:BaseContentAssistProcessor.java

示例11: getContextInformationValidator

import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
  return null;
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:5,代码来源:DefaultCompletionProcessor.java

示例12: getContextInformationValidator

import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
	// TODO Auto-generated method stub
	return null;
}
 
开发者ID:Imhotup,项目名称:LibertyEiffel-Eclipse-Plugin,代码行数:6,代码来源:EiffelContentAssistantProcessor.java

示例13: getContextInformationValidator

import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
@Override
public IContextInformationValidator getContextInformationValidator() {
	
	return null;
}
 
开发者ID:Imhotup,项目名称:LibertyEiffel-Eclipse-Plugin,代码行数:6,代码来源:EiffelContentAssistantProcessor.java

示例14: getContextInformationValidator

import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
public IContextInformationValidator getContextInformationValidator() {
	return null;
}
 
开发者ID:DarwinSPL,项目名称:DarwinSPL,代码行数:4,代码来源:DwprofileCompletionProcessor.java

示例15: getContextInformationValidator

import org.eclipse.jface.text.contentassist.IContextInformationValidator; //导入依赖的package包/类
public IContextInformationValidator getContextInformationValidator(){
   return new ContextInformationValidator(this);
}
 
开发者ID:nextinterfaces,项目名称:http4e,代码行数:4,代码来源:HContentAssistProcessor.java


注:本文中的org.eclipse.jface.text.contentassist.IContextInformationValidator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。