Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » create containment association at a superclass level
create containment association at a superclass level [message #170411] Tue, 29 January 2008 12:57 Go to next message
Julien Deantoni is currently offline Julien DeantoniFriend
Messages: 45
Registered: July 2009
Member
Hello all,

sorry for this question but I'm really out of idea :-/

I have a class that has an containment relation with an abstract
superclass. Two classes inherit from the abstract class.
I'd like to represent the containment on my diagram but the regular way
to do for containment relation (see here :
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg08564.html)
does not work :-(

Please, how can I do ?

thanks

julien
Re: create containment association at a superclass level [message #170442 is a reply to message #170411] Tue, 29 January 2008 13:22 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Julien,

You should declare a separate node in the mapping model for each of the
non-abstract subclasses and a single "phantom" reference-based link for
the containment reference. I believe it should work; if it doesn't, you
should probably file a bug report.

Best regards,
Boris

Julien DeAntoni wrote:
> Hello all,
>
> sorry for this question but I'm really out of idea :-/
>
> I have a class that has an containment relation with an abstract
> superclass. Two classes inherit from the abstract class.
> I'd like to represent the containment on my diagram but the regular way
> to do for containment relation (see here :
> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg08564.html)
> does not work :-(
>
> Please, how can I do ?
>
> thanks
>
> julien
Re: create containment association at a superclass level [message #170488 is a reply to message #170442] Tue, 29 January 2008 14:42 Go to previous messageGo to next message
Julien Deantoni is currently offline Julien DeantoniFriend
Messages: 45
Registered: July 2009
Member
Thank you Boris,

just to be sure; A "phantom" reference-based link is just a link mapping
where the only non-blank fields are "target Features" and "diagram
Link" ?

Regards,
Julien


Boris Blajer wrote:
> Hi Julien,
>
> You should declare a separate node in the mapping model for each of the
> non-abstract subclasses and a single "phantom" reference-based link for
> the containment reference. I believe it should work; if it doesn't, you
> should probably file a bug report.
>
> Best regards,
> Boris
>
> Julien DeAntoni wrote:
>> Hello all,
>>
>> sorry for this question but I'm really out of idea :-/
>>
>> I have a class that has an containment relation with an abstract
>> superclass. Two classes inherit from the abstract class.
>> I'd like to represent the containment on my diagram but the regular
>> way to do for containment relation (see here :
>> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg08564.html)
>> does not work :-(
>>
>> Please, how can I do ?
>>
>> thanks
>>
>> julien
Re: create containment association at a superclass level [message #170496 is a reply to message #170442] Tue, 29 January 2008 14:43 Go to previous messageGo to next message
Julien Deantoni is currently offline Julien DeantoniFriend
Messages: 45
Registered: July 2009
Member
Thank you Boris,

just to be sure; A "phantom" reference-based link is just a link mapping
where the only non-blank fields are "target Features" and "diagram
Link" ?

Regards,
Julien

Boris Blajer wrote:
> Hi Julien,
>
> You should declare a separate node in the mapping model for each of the
> non-abstract subclasses and a single "phantom" reference-based link for
> the containment reference. I believe it should work; if it doesn't, you
> should probably file a bug report.
>
> Best regards,
> Boris
>
> Julien DeAntoni wrote:
>> Hello all,
>>
>> sorry for this question but I'm really out of idea :-/
>>
>> I have a class that has an containment relation with an abstract
>> superclass. Two classes inherit from the abstract class.
>> I'd like to represent the containment on my diagram but the regular
>> way to do for containment relation (see here :
>> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg08564.html)
>> does not work :-(
>>
>> Please, how can I do ?
>>
>> thanks
>>
>> julien
Re: create containment association at a superclass level [message #170520 is a reply to message #170488] Tue, 29 January 2008 15:01 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Julien,

A "phantom" reference-based link is a link mapping where these two
fields are not blank and the target feature is a containment feature.


Best regards,
Boris

Julien DeAntoni wrote:
> Thank you Boris,
>
> just to be sure; A "phantom" reference-based link is just a link mapping
> where the only non-blank fields are "target Features" and "diagram
> Link" ?
>
> Regards,
> Julien
>
>
> Boris Blajer wrote:
>> Hi Julien,
>>
>> You should declare a separate node in the mapping model for each of
>> the non-abstract subclasses and a single "phantom" reference-based
>> link for the containment reference. I believe it should work; if it
>> doesn't, you should probably file a bug report.
>>
>> Best regards,
>> Boris
>>
>> Julien DeAntoni wrote:
>>> Hello all,
>>>
>>> sorry for this question but I'm really out of idea :-/
>>>
>>> I have a class that has an containment relation with an abstract
>>> superclass. Two classes inherit from the abstract class.
>>> I'd like to represent the containment on my diagram but the regular
>>> way to do for containment relation (see here :
>>> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg08564.html)
>>> does not work :-(
>>>
>>> Please, how can I do ?
>>>
>>> thanks
>>>
>>> julien
Re: create containment association at a superclass level [message #170536 is a reply to message #170520] Tue, 29 January 2008 15:35 Go to previous message
Julien Deantoni is currently offline Julien DeantoniFriend
Messages: 45
Registered: July 2009
Member
OK,

so finally there is a bug...

thanks !
Best regards
Julien

Boris Blajer wrote:
> Hi Julien,
>
> A "phantom" reference-based link is a link mapping where these two
> fields are not blank and the target feature is a containment feature.
>
>
> Best regards,
> Boris
>
> Julien DeAntoni wrote:
>> Thank you Boris,
>>
>> just to be sure; A "phantom" reference-based link is just a link
>> mapping where the only non-blank fields are "target Features" and
>> "diagram Link" ?
>>
>> Regards,
>> Julien
>>
>>
>> Boris Blajer wrote:
>>> Hi Julien,
>>>
>>> You should declare a separate node in the mapping model for each of
>>> the non-abstract subclasses and a single "phantom" reference-based
>>> link for the containment reference. I believe it should work; if it
>>> doesn't, you should probably file a bug report.
>>>
>>> Best regards,
>>> Boris
>>>
>>> Julien DeAntoni wrote:
>>>> Hello all,
>>>>
>>>> sorry for this question but I'm really out of idea :-/
>>>>
>>>> I have a class that has an containment relation with an abstract
>>>> superclass. Two classes inherit from the abstract class.
>>>> I'd like to represent the containment on my diagram but the regular
>>>> way to do for containment relation (see here :
>>>> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg08564.html)
>>>> does not work :-(
>>>>
>>>> Please, how can I do ?
>>>>
>>>> thanks
>>>>
>>>> julien
Previous Topic:Ekeys with mutiple keys
Next Topic:GMF gmfgen
Goto Forum:
  


Current Time: Sat Nov 09 01:08:07 GMT 2024

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

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

Back to the top