本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
}
}