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


Java StructuredViewer.getFilters方法代码示例

本文整理汇总了Java中org.eclipse.jface.viewers.StructuredViewer.getFilters方法的典型用法代码示例。如果您正苦于以下问题:Java StructuredViewer.getFilters方法的具体用法?Java StructuredViewer.getFilters怎么用?Java StructuredViewer.getFilters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jface.viewers.StructuredViewer的用法示例。


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

示例1: findFilter

import org.eclipse.jface.viewers.StructuredViewer; //导入方法依赖的package包/类
private BTSObjectsByListEntryFilter findFilter(StructuredViewer viewer,
		Class clazz) {
	BTSObjectsByListEntryFilter localfilter = null;
	ViewerFilter[] filters = viewer.getFilters();
	for (ViewerFilter f : filters)
	{
		if (clazz.isInstance(f))
		{
			localfilter = (BTSObjectsByListEntryFilter) f;
		}
	}
	return localfilter;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:14,代码来源:OpenObjectByListEntrySelectionFilterDialogHandler.java

示例2: findFilter

import org.eclipse.jface.viewers.StructuredViewer; //导入方法依赖的package包/类
private TypeSubtypeViewerFilter findFilter(StructuredViewer viewer) {
	TypeSubtypeViewerFilter localfilter = null;
	ViewerFilter[] filters = viewer.getFilters();
	for (ViewerFilter f : filters)
	{
		if (f instanceof TypeSubtypeViewerFilter)
		{
			localfilter = (TypeSubtypeViewerFilter) f;
		}
	}
	return localfilter;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:13,代码来源:OpenTypeSubtypeFilterDialogHandler.java

示例3: isFiltered

import org.eclipse.jface.viewers.StructuredViewer; //导入方法依赖的package包/类
private boolean isFiltered(BTSLemmaEntry e, StructuredViewer viewer) {
	for (ViewerFilter f : viewer.getFilters())
	{
		if (!f.select(viewer, null, e))
		{
			return false;
		}
	}
	return true;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:11,代码来源:LemmaNavigator.java

示例4: isFiltered

import org.eclipse.jface.viewers.StructuredViewer; //导入方法依赖的package包/类
private boolean isFiltered(BTSCorpusObject e, StructuredViewer viewer) {
	for (ViewerFilter f : viewer.getFilters())
	{
		if (!f.select(viewer, null, e))
		{
			return false;
		}
	}
	return true;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:11,代码来源:CorpusNavigatorPart.java

示例5: isFiltered

import org.eclipse.jface.viewers.StructuredViewer; //导入方法依赖的package包/类
private boolean isFiltered(BTSThsEntry e, StructuredViewer viewer) {
	for (ViewerFilter f : viewer.getFilters())
	{
		if (!f.select(viewer, null, e))
		{
			return false;
		}
	}
	return true;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:11,代码来源:ThsNavigator.java

示例6: isFiltered

import org.eclipse.jface.viewers.StructuredViewer; //导入方法依赖的package包/类
private boolean isFiltered(BTSAbstractText e, StructuredViewer viewer) {
	for (ViewerFilter f : viewer.getFilters())
	{
		if (!f.select(viewer, null, e))
		{
			return false;
		}
	}
	return true;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:11,代码来源:ATextNavigatorPart.java

示例7: findFilter

import org.eclipse.jface.viewers.StructuredViewer; //导入方法依赖的package包/类
private ViewerFilter findFilter(StructuredViewer viewer,
		Class clazz) {
	ViewerFilter localfilter = null;
	ViewerFilter[] filters = viewer.getFilters();
	for (ViewerFilter f : filters)
	{
		if (clazz.isInstance(f))
		{
			localfilter = (ViewerFilter) f;
		}
	}
	return localfilter;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:14,代码来源:NavigatorParametrizedFilterHandler.java

示例8: hasFilteredChildren

import org.eclipse.jface.viewers.StructuredViewer; //导入方法依赖的package包/类
private boolean hasFilteredChildren(StructuredViewer viewer, IPackageFragment fragment) {
	Object[] children= getRawChildren(viewer, fragment);
	ViewerFilter[] filters= viewer.getFilters();
	for (int i= 0; i < filters.length; i++) {
		children= filters[i].filter(viewer, fragment, children);
		if (children.length == 0)
			return false;
	}
	return true;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:11,代码来源:NonEssentialElementsFilter.java

示例9: transferFilters

import org.eclipse.jface.viewers.StructuredViewer; //导入方法依赖的package包/类
private void transferFilters(StructuredViewer oldViewer) {
	//set filters
	if (oldViewer != null) {
		ViewerFilter[] filters= oldViewer.getFilters();
		for (int i= 0; i < filters.length; i++) {
			ViewerFilter filter= filters[i];
			fViewer.addFilter(filter);
		}
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:11,代码来源:PackageViewerWrapper.java


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