Skip to main content



      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 06:27
Eclipse UserFriend
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 09:32] by Moderator

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


Current Time: Sat Aug 30 22:16:09 EDT 2025

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

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

Back to the top