本文整理汇总了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);
}
}
}