How can I access the Tabbed Properties View in Eclipse programatically?
I'd like to get access to the Tabbed Properties View in order to change the displayed tab programatically. When the selection is changed, the default behaviour is to show th开发者_如何学JAVAe same tab for the new selection (if they share a tab descriptor) or else to show the last known tab for that selection. I need to be able to set the tab based on program conditions.
Thanks in advance.
You need to ask for IPropertySheetPage.class adapter from Properties View workbench part, then cast it to org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage in order to call setSelectedTab() on it.
Cheers, Max
精彩评论