Class SelectGPropViewerFilter


  • public class SelectGPropViewerFilter
    extends org.eclipse.jface.viewers.ViewerFilter
    A viewer filter for plain properties.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      SelectGPropViewerFilteradd​(java.lang.Class<?>... cs)
      Adds other class to the same filter.
      booleanisValid​(GProp<?> gp)
      Checks for a valid class in this property of its children.
      booleanselect​(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object parentElement, java.lang.Object element)
      Filters what is passed through.
      • Methods inherited from class org.eclipse.jface.viewers.ViewerFilter

        filter, filter, isFilterProperty
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class org.eclipse.jface.viewers.ViewerFilter
      • isValid

        public boolean isValid​(GProp<?> gp)
        Checks for a valid class in this property of its children.