Writing custom visibleWhen rules [message #551243] |
Thu, 05 August 2010 17:20 |
Ozan Ozgur Messages: 4 Registered: August 2010 |
Junior Member |
|
|
Greetings,
I am writing an eclipse plugin and contributing to the right-click menu in the package explorer. I want my menu item to be visible when specific packages are selected based on predifined path. i.e. lets assume that my package hierarcy is as following(cap,svc and subordinate will be hardcoded keywords to define the path):
-cap
----svc
-------a
----------b
-------c
----------subordinate
-------------d
I need this menu item to be visible when package 'a', 'c' and 'd' are selected but i don't want it to be visible for the rest of the packages (i.e. b)
i can make it visible for 'a' and 'c' by:
<visibleWhen>
<iterate>
<adapt type="org.eclipse.core.resources.IResource">
<test property="org.eclipse.core.resources.path" value="/*/cap/svc/*"/>
</adapt>
</iterate>
</visibleWhen>
but i can not make it also visible to 'd' while not being visible to 'b'
can anyone help on this issue?
Thanks a lot in advance,
Ozan.
[Updated on: Thu, 05 August 2010 17:23] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03797 seconds