[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Node provisionning
|
- From: Rodolphe Beck <rodolphe.beck@xxxxxxxxx>
- Date: Fri, 13 Feb 2009 17:18:35 +0100
- Newsgroups: eclipse.modeling.gmf
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1b3pre) Gecko/20081204 Thunderbird/3.0b1
Hello,
I need to find a way to provision my diagram with data : ie create Nodes
by importing a file or a database. Then be able to use those nodes in my
diagram (as if I had created them from the palette).
I Managed to import some nodes with that code :
http://pastebin.com/m74acf879
This works, I got my nodes on my diagram.
Then I have to modify some properties of my newly created nodes to math
the file I import :
http://pastebin.com/m216568ce
But it only modifies the values of one node :
If I import a file with two nodes, it will modify the first created node
on the diagram with the values of the first node in the file, but then
it will modify the same node with the second value in the file...
It seems that it doesn't iterate over the elements.
What did I miss ?
Thanks.