Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem with visibleWhen extension element
Problem with visibleWhen extension element [message #723161] Wed, 07 September 2011 21:34 Go to next message
Brian H is currently offline Brian HFriend
Messages: 7
Registered: July 2009
Junior Member
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
Re: Problem with visibleWhen extension element [message #724905 is a reply to message #723161] Tue, 13 September 2011 13:13 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
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
Previous Topic:Options for creating a database project
Next Topic:Java Project is no listed under New
Goto Forum:
  


Current Time: Sat Apr 27 01:59:13 GMT 2024

Powered by FUDForum. Page generated in 0.08086 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top