[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: How to modify nodes index in a diagram?

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