Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Dynamic contribution to the Tabbed property view
Dynamic contribution to the Tabbed property view [message #805963] Fri, 24 February 2012 05:52 Go to next message
Jan Krakora is currently offline Jan Krakora
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi guys,

I have a problem with the tabbed property view.

Let's say I have an editor and want it support the tabbed property view.
I can do it following the Anthony Hunter's article http://www.eclipse.org/articles/Article-Tabbed-Properties/tabbed_properties_view.html

But what if I need change some tab labels based on a selection?? I can't
use the "static" way with tabs and section contributed using extension points,
but I have to provide my own ITabDescriptorProvider, right?

I also have to implement all those ITabDescriptors and even ISectionDescriptors
because the registry is now obtaining the sections from ITabDescriptors
provided by my ITabDescriptorProvider and sections contributed through
propertySections extension points are ignored.

What if someone else in its own plugin would like to extend any of my tab? Or
even add its own tab? With the "static way" it was easy, but how can one
archive this with "dynamic" way?

Thanks
Re: Dynamic contribution to the Tabbed property view [message #813575 is a reply to message #805963] Mon, 05 March 2012 08:03 Go to previous messageGo to next message
Varun Mishra is currently offline Varun Mishra
Messages: 2
Registered: March 2012
Junior Member
I am also looking an answer to the question. Please do share if anyone has a solution.

Thanks.
Re: Dynamic contribution to the Tabbed property view [message #815156 is a reply to message #813575] Wed, 07 March 2012 04:46 Go to previous message
Varun Mishra is currently offline Varun Mishra
Messages: 2
Registered: March 2012
Junior Member
Jan,

How did you provided your own ITabDescriptorProvider and ISectionDescriptors ? I mean how did you made tabbedProperty extension point use your classes ?

So far, I am able to add tabs dynamically (based on the item selected in view) by using IExtensionRegistry.addContribution() method. But even now, the property view does not gets updated with new tabs. (I am still looking into the issue)
Previous Topic:View Tab Look
Next Topic:Restoring View Positions
Goto Forum:
  


Current Time: Sun Apr 20 23:06:43 EDT 2014

Powered by FUDForum. Page generated in 0.01723 seconds