Create a Tabbed Property View for an Outline Page in an Eclipse RCP
===

Similar to other questions, I am trying to create a Tabbed Property View according to http://www.eclipse.org/articles/Article-Tabbed-Properties/tabbed_properties_view.html

I also have been referencing the question http://stackoverflow.com/questions/9579936/add-dynamic-tabs-in-tabbed-property-view-of-eclipse in order to create a dynamic provider for property/section tabs.

My problem: I have an outline page that contains a treeview of objects that contain properties (in my case these are Color, Opacity, etc.). I have already managed to create and show/edit simple properties for these (using http://www.eclipse.org/articles/Article-Properties-View/properties-view.html) but since the objects in question demand a more complex representation of these properties, a tabbed property view for a complex property UI would be needed.

The Outline page is called "SceneGraph" and I have added the code according to the tutorial, however in the getAdapter Method IPropertySheetPage class is never demanded:

    public class SceneGraph extends ContentOutlinePage implements IAdaptable, ITabbedPropertySheetPageContributor {
	/*
	 * constants
	 */

	public static final String ID = SceneGraph.class.getName();
	
	/*
	 * implementing ITabbedPropertySheetPageContributor
	 */
	
	public String getContributorId() {
		return ID;
	}
	
	/*
	 * implementing IAdaptable
	 */

	public Object getAdapter(Class adapter) {
		if (adapter == IShowInSource.class) {
			return null;
		} else if (adapter == IPropertySheetPage.class)
            return new TabbedPropertySheetPage(this);
        return null;
	}

I also have added the necessary code in the plugin.xml:

    <extension
       point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
       <propertyContributor
            contributorId="mipp.rcp.scene.outline.SceneGraph"
            tabDescriptorProvider="mipp.rcp.mov.descriptors.SceneDataTabDescriptorProvider"
            typeMapper="mipp.rcp.mov.typemapper.SceneDataTypeMapper">
         <propertyCategory
               category="SceneData"/>
       </propertyContributor>      
    </extension>


To note here is that the Scene Graph and the objects with the properties are in a different plugin than the property/section descriptors. The plugin.xml section from above is from the property descriptor plugin. I have already implemented basic TabDescriptorProviders, SectionDescriptors, etc. The reason why they are in seperate plugins is simply because that plugin was meant as an extension. However I'm not so sure I should keep them seperated.

While I have managed to get basic properties to show, I cannot instantiate a tabbed property view.

 - Do I have to move the descriptors and plugin code to the plugin where
   the outline is in?
 - Why is the propertysheetpage class never demanded?
 - Am I using the wrong class (SceneGraph) as the tabbed property sheet
   contributor?


I will add code, answer questions, etc. when needed. This is my first question on here, so go easy on me ;)
