Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » programatically show the Properties View(when user perform ctrl-Z, show the properties view of the object being modified)
programatically show the Properties View [message #556014] Mon, 30 August 2010 14:37
emil salageanu is currently offline emil salageanuFriend
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.

Previous Topic:How to show only the lable of a connection
Next Topic:Attach port to element on element creation
Goto Forum:
  


Current Time: Fri Apr 19 09:23:05 GMT 2024

Powered by FUDForum. Page generated in 0.01570 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top