How to modify nodes index in a diagram? [message #185014] |
Fri, 02 May 2008 02:41  |
Eclipse User |
|
|
|
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 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?
Thanks a lot in advance for your time!
Georges
|
|
|
|
|
|
|
Re: How to modify nodes index in a diagram? [message #212069 is a reply to message #185014] |
Tue, 25 November 2008 09:52  |
Eclipse User |
|
|
|
Originally posted by: eclipse.tooling.gmail.com
Hi Georges
I am trying to build a simple GMF based flow editor, but am still very
new to all this.. is the code you developed publicly available? or would
you be able to point me to some code examples that will help me get
started quickly to build this..
many thanks
c. perera
On Fri, 02 May 2008 06:41:37 +0000, Georges wrote
> 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 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?
>
> Thanks a lot in advance for your time!
>
> Georges
|
|
|
Powered by
FUDForum. Page generated in 0.08120 seconds