Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Class extending WorkbenchWindowControlContribution not invoking isVisible() method in Juno(4.2 Migration query)
Class extending WorkbenchWindowControlContribution not invoking isVisible() method in Juno [message #989299] Wed, 05 December 2012 14:59 Go to next message
Nihal Ahmed is currently offline Nihal AhmedFriend
Messages: 3
Registered: December 2012
Junior Member
Hi,

I noticed that with the migration to Juno 4.2, class extending WorkbenchWindowControlContribution isn't invoking an overridden method isVisible() which was working fine till 3.8. I am using this method to hide a custom composite (created in createControl method) to be shown/hidden in the toolbar based on the perspective. Is this an intentional change or should anything else be changed in the implementation to migrate to Juno?

Thank you for any help one can provide on this.

Regards,
Nihal
Re: Class extending WorkbenchWindowControlContribution not invoking isVisible() method in Juno [message #989926 is a reply to message #989299] Mon, 10 December 2012 05:52 Go to previous messageGo to next message
Nihal Ahmed is currently offline Nihal AhmedFriend
Messages: 3
Registered: December 2012
Junior Member
Experts,

There are over one thousand views. However, no one has extended any answer/direction towards its resolution. Sad
Any help would be really appreciated with this situation.

Regards,
Nihal
Re: Class extending WorkbenchWindowControlContribution not invoking isVisible() method in Juno [message #989938 is a reply to message #989926] Mon, 10 December 2012 07:32 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
File a bugzilla

Tom

Am 10.12.12 06:52, schrieb Nihal Ahmed:
> Experts,
> There are over one thousand views. However, no one has extended any
> answer/direction towards its resolution. :( Any help would be really
> appreciated with this situation.
> Regards, Nihal
>
Re: Class extending WorkbenchWindowControlContribution not invoking isVisible() method in Juno [message #990788 is a reply to message #989938] Fri, 14 December 2012 09:53 Go to previous message
Nihal Ahmed is currently offline Nihal AhmedFriend
Messages: 3
Registered: December 2012
Junior Member
Thanks Tom.

I did raise a bugzilla for this.
In any case, I found a work around to get around this problem. Hence, posting it for the sake of other who are stuck in a similar situation.
The solution looks pretty simple though. All one has to do is, append a visibleWhen condition to the control through the plugin.xml's menu extension and conditionally hide the control.

However, the issue of isVisible method not being invoked remains as is. Sad
Previous Topic:Verify if a project come from repository (get it programmatically)
Next Topic:How to install ICompletionListener (to all TextEditors)
Goto Forum:
  


Current Time: Tue Apr 16 14:45:28 GMT 2024

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

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

Back to the top