本文整理汇总了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);
}
示例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);
}
}
示例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();
}
示例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);
}
};
}
示例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);
}
};
}
示例6: NSISLaunchSettings
import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
NSISLaunchSettings(NSISSettings parent, ILaunchConfiguration launchConfig, IFilter filter)
{
mParent = parent;
setLaunchConfig(launchConfig);
mFilter = filter;
load();
}
示例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;
}
示例8: getFilter
import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
public IFilter getFilter() {
return null;
}
示例9: getFilter
import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
public IFilter getFilter(){
return this;
}
示例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);
}
}
示例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();
示例12: createSettingsFilter
import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
protected abstract IFilter createSettingsFilter();
示例13: getFilter
import org.eclipse.jface.viewers.IFilter; //导入依赖的package包/类
public IFilter getFilter();