java - ViewerFilter on TreeViewer -


I have a Jeffs tree viewer with four tree columns. I had added a viewer filter class to my tree in the search text The problem is that it is only filtering TreeParent and is not working on Tree Children.

For example:

  A A1 A2 A2.1 A2.2 BC   

The result for searchtext = "A1" is nothing.

searchtext = "Results for A2.1" is nothing.

My code:

  @ Override public boolean (viewer audience, object parent element, object element) {Boolean Result = true; If (text! = Null & amp; text.length ()> gt; {} Treateable object object = ((objectable object)) .getChild (); String person text = object .string (). ToLowerCase (); System.out.println ("text:" + text.toLowerCase ()); System.out.println ("Filter text:" + person text); Results = personText.indexOf (text.toLowerCase ())! = - 1;} Return result;}  


Comments