[Eugenia] Phantom nodes [message #588572] |
Thu, 22 April 2010 12:37  |
Eclipse User |
|
|
|
Originally posted by: Juan.deLara.uam.es
Hi,
I tried to decorate a class which contains instances of
such class with the phantom attribute, but did not manage
to make it work. In the example on the website, a slightly
different situation is shown, where the container and containee
are two different classes. In my case they are the same class,
is that compatible with the phantom attribute?
thanks,
cheers,
j.
|
|
|
|
|
|
|
|
|
|
|
Re: [Eugenia] Phantom nodes [message #643542 is a reply to message #642444] |
Tue, 07 December 2010 05:35   |
Eclipse User |
|
|
|
hi dimitris
ok my fault, i just recently installed the latest version of epsilon, and did not try it again... sorry!
nevertheless, now i found out that my original problem isn't solved by using phantom nodes...
as in my example, i have a classB that can be contained in both classA (the canvas) and classB instances. so if you create a new classB instance (node) in the diagram, it is created as a containment of the classA canvas. if you now have 2 classB nodes in the diagram and connect them with the connector (stating that one is contained in the other one), the one contained in the other classB instance is removed from the canvas (what makes sense, since it is no longer contained in the classA instance but now in the other classB instance).
long story short, i thought by making classB nodes phantoms i could prevent them from disappearing, but it doesn't work...
i guess this is not related to eugenia but is a gmf problem, right?
cheers
marco
|
|
|
Re: [Eugenia] Phantom nodes [message #643607 is a reply to message #643542] |
Tue, 07 December 2010 10:50   |
Eclipse User |
|
|
|
Hi Marco,
No worries :) Yes, this is a GMF issue which - I believe - can only be
solved by modifying (some part of) the generated code.
Cheers,
Dimitris
mkranz wrote:
> hi dimitris
>
> ok my fault, i just recently installed the latest version of epsilon,
> and did not try it again... sorry! :blush:
> nevertheless, now i found out that my original problem isn't solved by
> using phantom nodes... :? as in my example, i have a classB that can be
> contained in both classA (the canvas) and classB instances. so if you
> create a new classB instance (node) in the diagram, it is created as a
> containment of the classA canvas. if you now have 2 classB nodes in the
> diagram and connect them with the connector (stating that one is
> contained in the other one), the one contained in the other classB
> instance is removed from the canvas (what makes sense, since it is no
> longer contained in the classA instance but now in the other classB
> instance).
>
> long story short, i thought by making classB nodes phantoms i could
> prevent them from disappearing, but it doesn't work... :( i guess this
> is not related to eugenia but is a gmf problem, right?
>
> cheers
>
> marco
|
|
|
Re: [Eugenia] Phantom nodes [message #839841 is a reply to message #643607] |
Mon, 09 April 2012 05:21  |
Eclipse User |
|
|
|
hi Dimitris,
Could you tell me what part of the generated GMF code I have to change to make this work? Or could you tell me where I can find more information on this bug?
Cheers,
Oskar
|
|
|
Powered by
FUDForum. Page generated in 0.11982 seconds