Get All the Information in the Diagram [message #690482] |
Wed, 29 June 2011 11:19  |
Eclipse User |
|
|
|
Hi, after lancing the GMF project, I can put some Node and Arc in the canvas to create the model, but HOW could I get all their attributes(the name of class, position, attributions...)?
I have got them successfully in the handleNotificationEvent, but that function will be triggered only when some CHANGES are detected. But HOW could I got all the informations by code?
Thanks
Vincent
|
|
|
Re: Get All the Information in the Diagram [message #693008 is a reply to message #690482] |
Tue, 05 July 2011 11:59  |
Eclipse User |
|
|
|
Hi Vincent,
maybe you can take a look at the generated [XXX]CreateCommand in [YourDiagramPlugin].edit.commands package. Or, if you start from diagram selection, you have to do something like selectedEditPart.resolveSemanticElement() to investigate the model, where the selectedEditPart itself gives you infomation about position and layout.
HTH, bye
Giovanni
|
|
|
Powered by
FUDForum. Page generated in 0.04648 seconds