[英]An “OR” predicate on ViewerFilter in spite of the default “And” predicates?
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 : 我正在开发一个包含TreeViewer
的RCP应用程序,并且我想在其上激活多个过滤器,这些过滤器应与“ OR”谓词一起使用,例如:
A 一种
|--B | --B
|--|--redColor |-| --redColor
|--|--blueColor |-| --blueColor
|--C | --C
|--|--greenColor |-| --greenColor
I have a filter to show the redColor
and a filter to show the greenColor
. 我有一个过滤器来显示redColor
和一个过滤器来显示greenColor
。 but when activating these two filters together, nothing is displayed. 但是同时激活这两个过滤器时,不会显示任何内容。
My filter class extends the ViewerFilter
class 我的过滤器类扩展了ViewerFilter
类
您必须制作一个内部具有“或”条件的ViewerFilter,而不是两个单独的过滤器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.