programatically show the Properties View [message #556014] |
Mon, 30 August 2010 14:37 |
emil salageanu Messages: 94 Registered: June 2010 Location: Nice, France |
Member |
|
|
Hello.
In a gmf editor, when I do ctrl-Z, if one of the operations to be undone consist in editing of the properties of an object, I would like that properties view to be shown during the undo operation, so that the user could see what he's actually undoing.
Let's say we have an object A and the user modifies a (text) property. Then he selects the canvas. The properties view updates with the canvas properties.
Then the user does "ctrl-z" wich undo the setting of the property of A. We would like the the Properties view to change in order to see the A's properties.
I thought It could be done in the A editpart, like this:
@Override
protected void handleNotificationEvent(Notification event) {
super.handleNotificationEvent(event);
if ( do_I_want_to_see_the_properties_view_now )
this.setSelected(EditPart.SELECTED_PRIMARY);
this.fireSelectionChanged();
}
}
Which selects the A object but does not update the properties view.
Any ideea?
Thanks,
Emil.
|
|
|
Powered by
FUDForum. Page generated in 0.01570 seconds