Class SelectGPropViewerFilter

java.lang.Object
org.eclipse.jface.viewers.ViewerFilter
com.iizigo.prop.editor.dialog.SelectGPropViewerFilter

public class SelectGPropViewerFilter extends ViewerFilter
A viewer filter for plain properties.
Author:
Christopher Mindus
  • Constructor Details

    • SelectGPropViewerFilter

      public SelectGPropViewerFilter()
      Creates the viewer filter for no accept.
    • SelectGPropViewerFilter

      public SelectGPropViewerFilter(Class<?>[] possibleClasses)
      Creates the viewer filter.
      Parameters:
      possibleClasses - The classes that can be end nodes, null for none..
  • Method Details

    • add

      public SelectGPropViewerFilter add(Class<?>... cs)
      Adds other class to the same filter.
      Parameters:
      cs - The new classes to add.
      Returns:
      The same instance.
    • select

      public boolean select(Viewer viewer, Object parentElement, Object element)
      Filters what is passed through.
      Specified by:
      select in class ViewerFilter
    • isValid

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