Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Re-indexing nodes in a diagram
Re-indexing nodes in a diagram [message #184940] Wed, 30 April 2008 14:49
Eclipse UserFriend
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
Previous Topic:delete functionality
Next Topic:persisting diagrams and palette
Goto Forum:
  


Current Time: Fri Apr 26 01:25:21 GMT 2024

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

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

Back to the top