I have a diagram with different nodes which have different properties. I want to show these properties in the Properties view, but to do this I need to redraw all the widgets for each node. I have looked into ISectionDescriptorProvider and ISectionDescriptor. However, I can't find a way to assign a ISection to a certain type of pictorgram element (or rather the businessobject underneath).
As far as I can tell, that filter does not do what I want. Through the filter I get the selected object, but the select method only returns a boolean. To call the createControls method on the ISection, I need a Composite object, as well as a TabbedPropertySheetPage. These are not passed through the filter.
I want to dynamically create the widgets based on the shapes contained in my diagram elements.