Package com._1c.g5.v8.dt.ui.dialog
Class SubsystemsFilter
- java.lang.Object
-
- org.eclipse.jface.viewers.ViewerFilter
-
- com._1c.g5.v8.dt.ui.dialog.AbstractSubsystemFilter
-
- com._1c.g5.v8.dt.ui.dialog.SubsystemsFilter
-
public class SubsystemsFilter extends AbstractSubsystemFilter
The extension ofAbstractSubsystemFilter
for a wizard.
-
-
Constructor Summary
Constructors Constructor Description SubsystemsFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stream<Object>
getChildren(ITreeContentProvider provider, Object element)
Gets the stream of children for the given element.Set<Subsystem>
getSelectedSubsystems()
Gets the selected subsystems.boolean
isIncludeNotIncludedInSubsystems()
Gets the value of the 'includeNotIncludedInSubsystems' flag.boolean
select(Viewer viewer, Object parentElement, Object element)
void
setAlwaysTrue(boolean alwaysTrue)
Sets the new value to flag 'always true'.void
setConfigurationSubsystems(Collection<Subsystem> subsystems)
Sets the configuration subsystems.void
setincludeNotIncludedInSubsystems(boolean includeNotIncludedInSubsystems)
Sets the value of the 'includeNotIncludedInSubsystems' flag.void
setSelectedSubsystems(Set<Subsystem> selectedSubsystems)
Sets the selected subsystems.-
Methods inherited from class com._1c.g5.v8.dt.ui.dialog.AbstractSubsystemFilter
belongsToSubsystem, findInSubsystemsContent, notIncludedInAnySubsystem
-
Methods inherited from class org.eclipse.jface.viewers.ViewerFilter
filter, filter, isFilterProperty
-
-
-
-
Method Detail
-
getSelectedSubsystems
public Set<Subsystem> getSelectedSubsystems()
Gets the selected subsystems.- Returns:
- the selected subsystems, never
null
-
isIncludeNotIncludedInSubsystems
public boolean isIncludeNotIncludedInSubsystems()
Gets the value of the 'includeNotIncludedInSubsystems' flag.- Returns:
- the value of the 'includeNotIncludedInSubsystems' flag
-
select
public boolean select(Viewer viewer, Object parentElement, Object element)
- Specified by:
select
in classViewerFilter
-
setConfigurationSubsystems
public void setConfigurationSubsystems(Collection<Subsystem> subsystems)
Sets the configuration subsystems.- Parameters:
subsystems
- the configuration subsystems, can not benull
-
setincludeNotIncludedInSubsystems
public void setincludeNotIncludedInSubsystems(boolean includeNotIncludedInSubsystems)
Sets the value of the 'includeNotIncludedInSubsystems' flag.- Parameters:
includeNotIncludedInSubsystems
- the value of the 'includeNotIncludedInSubsystems' flag
-
setSelectedSubsystems
public void setSelectedSubsystems(Set<Subsystem> selectedSubsystems)
Sets the selected subsystems.- Parameters:
selectedSubsystems
- the selected subsystems, can not benull
-
setAlwaysTrue
public void setAlwaysTrue(boolean alwaysTrue)
Sets the new value to flag 'always true'.- Parameters:
alwaysTrue
- thetrue
if theselect(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
method returns alwaystrue
, otherwise theselect(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
method works as usually
-
getChildren
protected Stream<Object> getChildren(ITreeContentProvider provider, Object element)
Description copied from class:AbstractSubsystemFilter
Gets the stream of children for the given element.- Specified by:
getChildren
in classAbstractSubsystemFilter
- Parameters:
provider
- the tree content provider, can not benull
element
- the given tree element, can not benull
- Returns:
- the stream of children, never
null
-
-