Package com.iizigo.prop.editor.dialog
Class SelectGPropViewerFilter
- java.lang.Object
- org.eclipse.jface.viewers.ViewerFilter
- com.iizigo.prop.editor.dialog.SelectGPropViewerFilter
public class SelectGPropViewerFilter extends org.eclipse.jface.viewers.ViewerFilter
A viewer filter for plain properties.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description SelectGPropViewerFilter()
Creates the viewer filter for no accept.SelectGPropViewerFilter(java.lang.Class<?>[] possibleClasses)
Creates the viewer filter.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectGPropViewerFilter
add(java.lang.Class<?>... cs)
Adds other class to the same filter.boolean
isValid(GProp<?> gp)
Checks for a valid class in this property of its children.boolean
select(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object parentElement, java.lang.Object element)
Filters what is passed through.
Constructor Detail
SelectGPropViewerFilter
public SelectGPropViewerFilter()
Creates the viewer filter for no accept.
SelectGPropViewerFilter
public SelectGPropViewerFilter(java.lang.Class<?>[] possibleClasses)
Creates the viewer filter.- Parameters:
possibleClasses
- The classes that can be end nodes, null for none..
Method Detail
add
public SelectGPropViewerFilter add(java.lang.Class<?>... cs)
Adds other class to the same filter.- Parameters:
cs
- The new classes to add.- Returns:
- The same instance.
select
public boolean select(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object parentElement, java.lang.Object element)
Filters what is passed through.- Specified by:
select
in classorg.eclipse.jface.viewers.ViewerFilter
isValid
public boolean isValid(GProp<?> gp)
Checks for a valid class in this property of its children.