Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » visibleWhen of a menuContribution based on view selection
visibleWhen of a menuContribution based on view selection [message #667590] Fri, 29 April 2011 18:39 Go to next message
Markus Bischof is currently offline Markus BischofFriend
Messages: 11
Registered: January 2011
Junior Member
Hi all!

I've searched the forum but did not find a feasible solution for my problem.

I'm defining a menuContribution to a view toolbar. I've added a visibleWhen element and used a with(var=selection) element. This works fine when I change the selection in the view, but also let's the menuContribution disappear when the view looses it's focus.

Is there a way to say:
I want the contribution to be visible when the selection in view A is an instanceof class B, even when the view is not the active view?

Any help is appreciated!

Markus

[Updated on: Fri, 29 April 2011 19:07]

Report message to a moderator

Re: visibleWhen of a menuContribution based on view selection [message #667622 is a reply to message #667590] Sat, 30 April 2011 04:32 Go to previous message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 4/30/2011 12:09 AM, markusbischof82@gmail.com wrote:
> Hi all!
>
> I've searched the forum but did not find a feasible solution for my
> problem.
> I'm defining a menuContribution to a view toolbar. I've added a
> visibleWhen element and used a with(var=selection) element. This works
> fine when I change the selection in the view, but also let's the
> menuContribution disappear when the view looses it's focus.
> Is there a way to say: I want the contribution to be visible when the
> selection in view A is an instanceof class B...
>
> Any help is appreciated!
>
> Markus

This question should be asked in the Platform forum, copying there.
Previous Topic:Source not Found
Next Topic:#
Goto Forum:
  


Current Time: Tue Mar 19 08:09:41 GMT 2024

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

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

Back to the top