Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » TabDescriptorProvider and tabbed.propertyTabs extension point(How to combine dynamic Tab Descriptor Provider and static Property Tabs?)
TabDescriptorProvider and tabbed.propertyTabs extension point [message #780509] Wed, 18 January 2012 11:27
Nico Beierle is currently offline Nico BeierleFriend
Messages: 1
Registered: January 2012
Junior Member
Hello,

via the tabbed.propertyContributer extension point I had implemented the TabDescriptorProvider to generate a dynamic number of tabs. This works pretty well. Furthermore I would like to the define some fixed property tabs by using the tabbed.propertyTabs extension point (the classic way to define tabs). The problem is that these tabs will not be shown while a TabDescriptorProvider is available. If I remove the TabDescriptorProvider, the static property tabs will be shown as expected.

A quick look to the eclipse sources shows the following lines that may cause my trouble (TabbedPropertyRegistry.java:282):
if (tabDescriptorProvider == null) {
    allDescriptors = getAllTabDescriptors();
} else {
    allDescriptors = tabDescriptorProvider.getTabDescriptors(part, selection);
}


The code seems to confirm my fears: While using a TabDescriptorProvider all tabs that are defined in the plugin.xml will be ignored.

Question: Is it possible to combine the Tab descriptor provider with the tabbed.propertyTabs extension point? Do I missed anything here? Are there any workarounds? Replacing the TabbedPropertyRegistry.java doesn't seems to be possible.

[Updated on: Wed, 18 January 2012 14:32]

Report message to a moderator

Previous Topic:Subclassing Text
Next Topic:Custom editor content assist tab behavior
Goto Forum:
  


Current Time: Thu Sep 26 00:20:13 GMT 2024

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

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

Back to the top