|
Re: Problem with visibleWhen extension element [message #724905 is a reply to message #723161] |
Tue, 13 September 2011 13:13 |
Eric Rizzo Messages: 3070 Registered: July 2009 |
Senior Member |
|
|
Not really a "newcomers" question; try asking in the Platform forum group.
Eric
On 9/7/11 5:34 PM, Brian H wrote:
> Hello,
>
> I have created a plugin that adds menu items to the navigator and
> project explorer views, but it i'm having a problem with menu
> visibility. I am using the visibleWhen element along with property
> testers. It works fine as long as the view is active, but when the view
> is not active the property testers are not called and all of the menus
> are visible (only some of them should be visible depending on context).
>
> Here is the scenario. I right click on an item in the view, and my menus
> show up as expected. Then i select a menu item and a handler is called,
> which sometimes makes another view the active view (e.g. the console).
> Then if i right click again on an element in the navigator or explorer
> view, all of my menu items are visible (as the navigator view is not
> active). I would think that right clicking on an element in a view would
> make that view active, but that is not always the case.
>
> Is there anything I can do about this?
>
> thanks,
> brian
|
|
|
Powered by
FUDForum. Page generated in 0.08086 seconds