GMF delete node problem [message #662920] |
Fri, 01 April 2011 09:37  |
Eclipse User |
|
|
|
Hello everyone,
I´m facing some problems here, this is what i want to do:
When I delete a node in the diagram I would like to save some data about it in a file (ID, Name etc...)
How can I get this data just before it is deleted and save it to the file?
Thanks in advance,
Joao
|
|
|
|
|
|
|
Re: GMF delete node problem [message #1060449 is a reply to message #1058955] |
Fri, 24 May 2013 13:05  |
Eclipse User |
|
|
|
Hi Bradai,
the generated DeleteElementAction abstracts from AbstractDeleteFromAction, that shows, how a DestroyElementRequest is used to create the appropriate command from the EditPart.
You could hook into this class to get the appropriate information prior to execution.
Another approach would be to get the latest command from the commandstack and take the information from there.
Regards
Thomas
[Updated on: Fri, 24 May 2013 13:06] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03725 seconds