문제

I am developing a RCP application which contains a TreeViewer and I want to activate multiple filters on it that should work with the "OR" predicates, for example :


A
|--B
|--|--redColor
|--|--blueColor
|--C
|--|--greenColor

I have a filter to show the redColor and a filter to show the greenColor. but when activating these two filters together, nothing is displayed.

My filter class extends the ViewerFilter class

도움이 되었습니까?

해결책

You have to make a single ViewerFilter that has the "or" condition inside of it, not two separate filters.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top