I have a number of nodes on the canvas, each with a textual name. I have implemented a property section as per tutorial that extends GFPropertySection and implements ITabbedPropertyConstants.
If I make a change to the name of a node in the property view, the change is correctly reflected on the canvas. If I subsequently 'undo' the change by hitting CTRL-Z (with the property view still in view and activated), the change is undone from the canvas but not reflected in the property view.
I have observed that on undo, the refresh of the property section is not being called.
Do I have to do anything specific to enable refresh on undo?
Michael Wenz Messages: 1777 Registered: July 2009 Location: Walldorf, Germany
this sounds as if there is no mechanism in place that listens for changes to
the displayed attribute of the EMF object in the property sheet. You should
register an EMF adapter that gets notified on changes to that attribute and
update the field accordingly.
i was asked to implement a property view for the feature diagram editor, which means when i click on a note in the diagram editor, some relative properties should be available in the property view and also could be edited in the property view.
Now the problem is i don't know how to start with this task, and the property view's status is also not available. Could you please give me some hints or the tutorial that you mentioned above? Many thanks!