Class GUIConfigurationFilter
- java.lang.Object
-
- net.ssehub.easy.producer.ui.productline_editor.configuration.GUIConfigurationFilter
-
class GUIConfigurationFilter extends java.lang.ObjectContainer for usable ViewerFilter.- Author:
- El-Sharkawy
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.jface.viewers.ViewerFilter[]filters
-
Constructor Summary
Constructors Constructor Description GUIConfigurationFilter()Sole constructor of this class for creating an empty filter, which filter nothing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intcountElements()Determines how many active filters are set.(package private) org.eclipse.jface.viewers.ViewerFilter[]getFilters()Returns only the configured (not null) filters as an array.(package private) voidsetAssignmentStateFilter(AbstractConfigurationFilter filter)Sets the Assignmentfilter.(package private) voidsetAttributeFilter(AbstractConfigurationFilter filter)Sets the attribute filter.(package private) voidsetInterfaceFilter(AbstractConfigurationFilter filter)Sets theInterfaceFilter.(package private) voidsetNameFilter(AbstractConfigurationFilter filter)Sets the name filter.(package private) voidsetNamespaceFilter(AbstractConfigurationFilter filter)Sets the namespace filter.
-
-
-
Method Detail
-
setAttributeFilter
void setAttributeFilter(AbstractConfigurationFilter filter)
Sets the attribute filter.- Parameters:
filter- anAttributeFilteror null to delete an existing filter.
-
setNameFilter
void setNameFilter(AbstractConfigurationFilter filter)
Sets the name filter.- Parameters:
filter- anConfigNameFilteror null to delete an existing filter.
-
setNamespaceFilter
void setNamespaceFilter(AbstractConfigurationFilter filter)
Sets the namespace filter.- Parameters:
filter- anNamespaceFilteror null to delete an existing filter.
-
setAssignmentStateFilter
void setAssignmentStateFilter(AbstractConfigurationFilter filter)
Sets the Assignmentfilter.- Parameters:
filter- anAssignmentStateFilteror null to delete an existing filter.
-
setInterfaceFilter
void setInterfaceFilter(AbstractConfigurationFilter filter)
Sets theInterfaceFilter.- Parameters:
filter- anInterfaceFilteror null to delete an existing filter.
-
countElements
private int countElements()
Determines how many active filters are set.- Returns:
- 0 if no filter was set, otherwise a number greater than 0.
-
getFilters
org.eclipse.jface.viewers.ViewerFilter[] getFilters()
Returns only the configured (not null) filters as an array.- Returns:
- A array of filter, if now filter was specified an empty array will be returned.
-
-