Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia] Phantom nodes
[Eugenia] Phantom nodes [message #588572] Thu, 22 April 2010 16:37 Go to next message
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 #639733 is a reply to message #588572] Wed, 17 November 2010 15:51 Go to previous messageGo to next message
m kranz is currently offline m kranz
Messages: 69
Registered: January 2010
Member
hi

i have the same problem, so i just revive this thread...
what i have is basically

classA -> gmf.diagram
classB -> gmf.node (phantom)
classB.nestedClassB(0...*) -> gmf.link

so elements of classB can be both contained in classA or classB, and when they're contained in classB i want to show them as external (phantom) nodes.
when i try to generate the *models in the first step, i get the error message

"Called feature domainMetaElement on undefined object (463:69)"

so my question is, is it possible to use phantom nodes in this way or not?

cheers

marco
Re: [Eugenia] Phantom nodes [message #639761 is a reply to message #639733] Wed, 17 November 2010 17:15 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

I believe we took this offline with Juan. I really should have updated
the bug report (https://bugs.eclipse.org/bugs/show_bug.cgi?id=310248)
with the resolution but this somehow fell through the cracks. As a
result, I can't quite remember what the outcome was after all this time
:) Could you please attach a minimal metamodel that reproduces this so
that I can have (another) look?

Cheers,
Dimitris

mkranz wrote:
> hi
>
> i have the same problem, so i just revive this thread...
> what i have is basically
> classA -> gmf.diagram
> classB -> gmf.node (phantom)
> classB.nestedClassB(0...*) -> gmf.link
>
> so elements of classB can be both contained in classA or classB, and
> when they're contained in classB i want to show them as external
> (phantom) nodes.
> when i try to generate the *models in the first step, i get the error
> message
>
> "Called feature domainMetaElement on undefined object (463:69)"
>
> so my question is, is it possible to use phantom nodes in this way or not?
>
> cheers
>
> marco
Re: [Eugenia] Phantom nodes [message #640520 is a reply to message #639761] Mon, 22 November 2010 12:22 Go to previous messageGo to next message
m kranz is currently offline m kranz
Messages: 69
Registered: January 2010
Member
hi dimitris

seems i'm not allowed to attach things to a post...
i'll send you the example via email. it's basically the example i described in my first post.
hope you remember the solution.

cheers

marco
Re: [Eugenia] Phantom nodes [message #641135 is a reply to message #640520] Wed, 24 November 2010 11:24 Go to previous messageGo to next message
m kranz is currently offline m kranz
Messages: 69
Registered: January 2010
Member
hi dimitris

did you get my mail?
i just saw that there is a new email-adress around (epsilon.devs gmail com), should i use this one instead?

cheers

marco
Re: [Eugenia] Phantom nodes [message #641143 is a reply to message #641135] Wed, 24 November 2010 12:04 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

I have, but things have been quite hectic in the last few days and I
haven't had a chance to look at this yet. I'll try to look into this
later on today and get back to you.

Cheers,
Dimitris

On 24/11/2010 11:24, mkranz wrote:
> hi dimitris
>
> did you get my mail? i just saw that there is a new email-adress around
> (epsilon.devs gmail com), should i use this one instead?
>
> cheers
>
> marco
Re: [Eugenia] Phantom nodes [message #641171 is a reply to message #641143] Wed, 24 November 2010 13:26 Go to previous messageGo to next message
m kranz is currently offline m kranz
Messages: 69
Registered: January 2010
Member
hi dimitris

no need to stress yourself (is this good english? Smile), i'll be away until next monday anyway, so take your time.
i just wanted to make sure you got the mail.

cheers

marco
Re: [Eugenia] Phantom nodes [message #641321 is a reply to message #641171] Wed, 24 November 2010 23:02 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

Thanks for letting me know (yes, that's perfectly good English AFAIK :) ).

Cheers,
Dimitris

mkranz wrote:
> hi dimitris
>
> no need to stress yourself (is this good english? :)), i'll be away
> until next monday anyway, so take your time.
> i just wanted to make sure you got the mail.
>
> cheers
>
> marco
Re: [Eugenia] Phantom nodes [message #642444 is a reply to message #641321] Wed, 01 December 2010 11:22 Go to previous messageGo to next message
m kranz is currently offline m kranz
Messages: 69
Registered: January 2010
Member
hi dimitris

any news on this one?

cheers

marco
Re: [Eugenia] Phantom nodes [message #643542 is a reply to message #642444] Tue, 07 December 2010 10:35 Go to previous messageGo to next message
m kranz is currently offline 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! Embarrassed

nevertheless, now i found out that my original problem isn't solved by using phantom nodes... Confused
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... Sad
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 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline 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
Re: [Eugenia] Phantom nodes [message #839841 is a reply to message #643607] Mon, 09 April 2012 09:21 Go to previous message
Oskar van Rest is currently offline Oskar van Rest
Messages: 12
Registered: February 2012
Junior Member
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
Previous Topic:Bug in org.eclipse.epsilon.evl.emf.validation
Next Topic:installing epsilon on galileo
Goto Forum:
  


Current Time: Tue Oct 21 15:20:46 GMT 2014

Powered by FUDForum. Page generated in 0.02229 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software