當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。