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


Java IFilter类代码示例

本文整理汇总了Java中org.eclipse.jface.viewers.IFilter的典型用法代码示例。如果您正苦于以下问题:Java IFilter类的具体用法?Java IFilter怎么用?Java IFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IFilter类属于org.eclipse.jface.viewers包,在下文中一共展示了IFilter类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: filterFromPatternString

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
public static IFilter filterFromPatternString(String pattern) {
  if (pattern.length() == 0) {
    return AcceptAllFilter.getInstance();
  }

  if (pattern.startsWith("0x")) { //$NON-NLS-1$
    return new ClassIdMatcher(pattern);
  }

  return new ClassNameMatcher(pattern);
}
 
开发者ID:eclipse,项目名称:eclemma,代码行数:12,代码来源:ExecutedClassesFilters.java

示例2: filteredAdd

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
/**
 * @param collection
 * @param toAdd
 */
private static void filteredAdd(LazySortedCollection collection, Object[] toAdd, IFilter filter) {
	if (filter != AcceptAllFilter.getInstance()) { 
		for (int i = 0; i < toAdd.length; i++) {
			Object object = toAdd[i];
			
			if (filter.select(object)) {
				collection.add(object);
			}
		}
	} else {
		collection.addAll(toAdd);
	}
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:18,代码来源:BackgroundContentProvider.java

示例3: setFilter

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
/**
 * Sets the filter for this content provider
 * 
 * @param toSet filter to set
 */
public void setFilter(IFilter toSet) {
	Assert.isNotNull(toSet);
	this.filter = toSet;
	sortMon.cancel();
	refresh();
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:12,代码来源:BackgroundContentProvider.java

示例4: createSettingsFilter

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
@Override
protected IFilter createSettingsFilter()
{
    return new IFilter() {
        public boolean select(Object toTest)
        {
            return INSISSettingsConstants.SYMBOLS.equals(toTest);
        }
    };
}
 
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:11,代码来源:NSISSymbolsTab.java

示例5: createSettingsFilter

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
@Override
protected IFilter createSettingsFilter()
{
    return new IFilter() {
        public boolean select(Object toTest)
        {
            return !INSISSettingsConstants.SYMBOLS.equals(toTest);
        }
    };
}
 
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:11,代码来源:NSISGeneralTab.java

示例6: NSISLaunchSettings

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
NSISLaunchSettings(NSISSettings parent, ILaunchConfiguration launchConfig, IFilter filter)
{
    mParent = parent;
    setLaunchConfig(launchConfig);
    mFilter = filter;
    load();
}
 
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:8,代码来源:NSISLaunchSettings.java

示例7: getFilterFor

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
public IFilter getFilterFor(final Class<? extends PersistentObject> clazz){
	IObjectFilterProvider prov = hash.get(clazz);
	if (prov != null) {
		return prov.getFilter();
	}
	return null;
}
 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:8,代码来源:ObjectFilterRegistry.java

示例8: getFilter

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
public IFilter getFilter() {
	return null;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:4,代码来源:AbstractSectionDescriptor.java

示例9: getFilter

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
public IFilter getFilter(){
	return this;
}
 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:4,代码来源:FaelleView.java

示例10: setFilter

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
/**
 * Sets the filter for this content provider. This filter takes priority over
 * anything that was supplied to the <code>TableViewer</code>. The filter
 * must be capable of being used in a background thread.
 * 
 * @param toSet filter to set
 */
public void setFilter(IFilter toSet) {
	this.filter = toSet;
	if (provider != null) {
		provider.setFilter(toSet);
	}
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:14,代码来源:DeferredContentProvider.java

示例11: getFilter

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
/**
 * Get the section filter instance for this section. Return null if no
 * filter for this section.
 * 
 * @return the section filter instance.
 */
public IFilter getFilter();
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:8,代码来源:ISectionDescriptor.java

示例12: createSettingsFilter

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
protected abstract IFilter createSettingsFilter(); 
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:2,代码来源:NSISTab.java

示例13: getFilter

import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
public IFilter getFilter(); 
开发者ID:elexis,项目名称:elexis-3-core,代码行数:2,代码来源:ObjectFilterRegistry.java


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