Re-indexing nodes in a diagram [message #184940] |
Wed, 30 April 2008 14:49 |
Eclipse User |
|
|
|
Originally posted by: georges.bachelier.atmel.com
Hello everyone,
I have built a very simple GMF-based flow editor. The user can place nodes
on the canvas with an auto-numbering operation through the Node 'nodeName'
attribute. Therefore, the first node name is N0, the second one N1, etc. I
want the nodes to be re-indexed on the diagram if the user deletes one or
more nodes so that there is no missing index.
If I have nodes N0, N1 and N2 and if the user deletes the node N1, I want
the remaining nodes to be named N0 and N1 (N2 becomes N1).
How can I do this? Should I modify some of my GMF editor plug-in functions
or should I change something in the EMF domain model plug-in? Please do
not hesitate to give me a detailed answer since I am new on these
technologies.
Thanks a lot in advance for your time!
Georges
|
|
|
Powered by
FUDForum. Page generated in 0.02588 seconds