Package com.iizigo.prop.editor.dialog
Class SelectPropViewerFilter
java.lang.Object
org.eclipse.jface.viewers.ViewerFilter
com.iizigo.prop.editor.dialog.SelectPropViewerFilter
- Direct Known Subclasses:
ImageDefinitionFilter
A viewer filter for extends properties.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionCreates the viewer filter for no accept.SelectPropViewerFilter(Class<?>[] possibleClasses) Creates the viewer filter.Method Summary
Modifier and TypeMethodDescriptionAdds other class to the same filter.voidaddFilter(ViewerFilter filter) Adds an additional filter.booleanChecks for a valid class in this property of its children.booleanChecks if a property is of a valid class to be selected as final selection.booleanFilters what is passed through.voidsetValidModules(ModuleModel[] modules) Sets the valid projects for the workspace root.Methods inherited from class org.eclipse.jface.viewers.ViewerFilter
filter, filter, isFilterProperty
Constructor Details
SelectPropViewerFilter
public SelectPropViewerFilter()Creates the viewer filter for no accept.SelectPropViewerFilter
Creates the viewer filter.- Parameters:
possibleClasses- The classes that can be end nodes, null for none..
Method Details
setValidModules
Sets the valid projects for the workspace root.- Parameters:
modules- The valid modules array, or null for all (default).
add
Adds other class to the same filter.- Parameters:
cs- The new classes to add.- Returns:
- The same instance.
addFilter
Adds an additional filter.select
Filters what is passed through.- Specified by:
selectin classViewerFilter
isValidSelection
Checks if a property is of a valid class to be selected as final selection.- Parameters:
pc- The property.- Returns:
- If OK, false if a child of this container may be selectable.
isValid
Checks for a valid class in this property of its children.