Unable to get hierarchy in table [message #1231402] |
Tue, 14 January 2014 10:41  |
Eclipse User |
|
|
|
Hi,
I try to put a bounded recursive structure in a table. The meta model contains a class C which on its turn might contain another instance of type C.
C <>---> [0..1] C
I created an model instance looking like: c1{c2{c3}}. So c1 contains c2 which contains c3 which does not contain any C instance anymore.
I would like to visualize this in a table like:
Therefore I created a linemapping CLineMapping which imports itself in order to facilitate the recursion.
However I end up with a table looking like:
c1
+--c2
+--c3
c2
+--c3
c3
So c2 and c3 are present multiple times. How do I limit them? I suppose that this is a rather trivial task and I must be overlooking something but I don't see it.
Any ideas?
Greetings,
Wilbert.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04812 seconds