public abstract class ViewFilter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ViewFilter.ViewCapabilityFilter |
static class |
ViewFilter.ViewCategoryFilter |
static class |
ViewFilter.ViewClassFilter |
static class |
ViewFilter.ViewIdFilter |
Modifier and Type | Field and Description |
---|---|
static ViewFilter |
emptyFilter
Empty default filter, accepts all
View instances. |
Constructor and Description |
---|
ViewFilter() |
public static final ViewFilter emptyFilter
View
instances.
This implementation always returns true
.public abstract boolean filter(org.java.plugin.registry.Extension extension, View view)
true
if the supplied View
instance
should be included. Note that only the extension
parameter is guaranteed to be non-null
! Only if
the View
defined by the given Extension
has
already been activated the second parameter view
will be
set as well. This allows for the filtering of all connected view
extensions on a Perspective
and if a filter allows a
not yet activated view to be included it will be activated.