Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Setting properties into GMF
Setting properties into GMF [message #221594] Mon, 16 March 2009 22:12 Go to next message
Eclipse UserFriend
Originally posted by: ralph.schreder.gmx.de

My task is to update a label of a node in my gmf diagram editor, like
the property view.
In my program I double click on a node. Than a dialog opens. Now I type
the values into this dialog.
After finishing the dialog I want to transfer the dialog parameters into
the gmf model.
How should I do this?

Thanks,
Ralph
Re: Setting properties into GMF [message #221624 is a reply to message #221594] Tue, 17 March 2009 10:47 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Ralph,

Just get the model element from current selection and set property value
into it using EMF-generated api..

-----------------
Alex Shatalin
Re: Setting properties into GMF [message #221721 is a reply to message #221624] Tue, 17 March 2009 14:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ralph.schreder.gmx.de

Thanks for your answer. But I think, this is not enough. My GMF diagram
model and figures have to be also updated. So I need a transaction.

- Ralph

Alex Shatalin schrieb:
> Hello Ralph,
>
> Just get the model element from current selection and set property value
> into it using EMF-generated api..
>
> -----------------
> Alex Shatalin
>
>
Re: Setting properties into GMF [message #221902 is a reply to message #221721] Thu, 19 March 2009 11:43 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Ralph,

You can subclass AbstractEMFOperation, implement doExecute method, run it
using OperationHistoryFactory.getOperationHistory().execute()

-----------------
Alex Shatalin
Previous Topic:GMF load diagram file performance problem - eResolveProxy
Next Topic:How can I store the bounds information in the model features?
Goto Forum:
  


Current Time: Fri Apr 26 14:06:07 GMT 2024

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

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

Back to the top