public class TypedViewerFilter extends ViewerFilter
Constructor and Description |
---|
TypedViewerFilter(Class<?>[] acceptedTypes)
Creates a filter that only allows elements of gives types.
|
TypedViewerFilter(Class<?>[] acceptedTypes,
Object[] rejectedElements)
Creates a filter that only allows elements of gives types, but not from a
list of rejected elements.
|
Modifier and Type | Method and Description |
---|---|
boolean |
select(Viewer viewer,
Object parentElement,
Object element) |
filter, filter, isFilterProperty
public TypedViewerFilter(Class<?>[] acceptedTypes)
acceptedTypes
- The types of accepted elementspublic TypedViewerFilter(Class<?>[] acceptedTypes, Object[] rejectedElements)
acceptedTypes
- Accepted elements must be of this typesrejectedElements
- Element equals to the rejected elements are
filtered outpublic boolean select(Viewer viewer, Object parentElement, Object element)
select
in class ViewerFilter
ViewerFilter.select(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.