TabDescriptorProvider and tabbed.propertyTabs extension point [message #780509] |
Wed, 18 January 2012 11:27 |
Nico Beierle 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
|
|
|
Powered by
FUDForum. Page generated in 0.03654 seconds