[Eugenia] Phantom nodes [message #588572] |
Thu, 22 April 2010 16: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 10:35 |
m kranz Messages: 69 Registered: January 2010 |
Member |
|
|
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 15:50 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02854 seconds