Package com._1c.g5.v8.dt.ui.dialog
Class AbstractSubsystemFilter
- java.lang.Object
-
- org.eclipse.jface.viewers.ViewerFilter
-
- com._1c.g5.v8.dt.ui.dialog.AbstractSubsystemFilter
-
- Direct Known Subclasses:
SubsystemsFilter
public abstract class AbstractSubsystemFilter extends ViewerFilter
A viewer filter to filter navigator tree by subsystems.
-
-
Constructor Summary
Constructors Constructor Description AbstractSubsystemFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
belongsToSubsystem(ITreeContentProvider provider, Object element, Collection<Subsystem> subsystems)
Determines whether the given element or its child belongs to the given set of subsystems.protected boolean
findInSubsystemsContent(Object element, Collection<Subsystem> subsystems)
Determines whether the given element belongs to the given set of subsystems.protected abstract Stream<Object>
getChildren(ITreeContentProvider provider, Object element)
Gets the stream of children for the given element.protected boolean
notIncludedInAnySubsystem(ITreeContentProvider provider, Object element, Collection<Subsystem> subsystems)
Determines whether the given element or its child doesn't belong to any subsystem from the given set of subsystems.-
Methods inherited from class org.eclipse.jface.viewers.ViewerFilter
filter, filter, isFilterProperty, select
-
-
-
-
Method Detail
-
belongsToSubsystem
protected boolean belongsToSubsystem(ITreeContentProvider provider, Object element, Collection<Subsystem> subsystems)
Determines whether the given element or its child belongs to the given set of subsystems.- Parameters:
provider
- the tree content provider, can not benull
element
- the given tree element, can not benull
subsystems
- the given set of subsystems, can not benull
- Returns:
true
if the given element or its child belongs to the given set of subsystems andfalse
otherwise
-
findInSubsystemsContent
protected boolean findInSubsystemsContent(Object element, Collection<Subsystem> subsystems)
Determines whether the given element belongs to the given set of subsystems.- Parameters:
element
- the given tree element, can not benull
subsystems
- the given set of subsystems, can not benull
- Returns:
true
if the given belongs to the given set of subsystems andfalse
otherwise
-
notIncludedInAnySubsystem
protected boolean notIncludedInAnySubsystem(ITreeContentProvider provider, Object element, Collection<Subsystem> subsystems)
Determines whether the given element or its child doesn't belong to any subsystem from the given set of subsystems.- Parameters:
provider
- the tree content provider, can not benull
element
- the given tree element, can not benull
subsystems
- the given set of subsystems, can not benull
- Returns:
true
if the given element or its child doesn't belong to any subsystem from the given set of subsystems andfalse
otherwise
-
getChildren
protected abstract Stream<Object> getChildren(ITreeContentProvider provider, Object element)
Gets the stream of children for the given element.- Parameters:
provider
- the tree content provider, can not benull
element
- the given tree element, can not benull
- Returns:
- the stream of children, never
null
-
-