Skip to main content



      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 09:59 Go to next message
Eclipse UserFriend
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 00:52 Go to previous messageGo to next message
Eclipse UserFriend
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 02:32 Go to previous messageGo to next message
Eclipse UserFriend
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 04:53 Go to previous message
Eclipse UserFriend
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: Fri Jul 25 16:57:53 EDT 2025

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

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

Back to the top