Links in GMF [message #172325] |
Tue, 12 February 2008 16:29 |
Eclipse User |
|
|
|
Originally posted by: kamesh.sampath.gmail.com
Hi,
I am using a EMF model that has non-containment references from a
feature of class A to Class B like
E.g
Class A
- name
- id
- dept -> Class B .deptid
Class B
- dept id
- dept
when i try to make a Connection via GMF am getting an error message
saying "Source Feature" and "Target Feature" must be owned by the domain
element or its super type error
But I cant actually create a super type for these classes as they are
distinct in nature
Any pointers or help on how to connect them via GMF is much appreciated
Thanks,
Kamesh
|
|
|
Re: Links in GMF [message #172371 is a reply to message #172325] |
Wed, 13 February 2008 09:12 |
Eclipse User |
|
|
|
Originally posted by: tobk42.gmx.de
To me this sounds like you selected a feature as 'target feature' that
is not a feature of the source class 'A'. Since the list holding the
features in the gmfmap-editor does only state the names of the features
this can easily happen if there are two elements in the model holding a
feature of the same name (like 'dept'). If there are two features with
the name 'dept' in the list, try selecting the other one.
Tobias
Kamesh Sampath schrieb:
> Hi,
>
>
> I am using a EMF model that has non-containment references from a
> feature of class A to Class B like
>
> E.g
>
> Class A
> - name
> - id
> - dept -> Class B .deptid
>
> Class B
> - dept id
> - dept
>
>
> when i try to make a Connection via GMF am getting an error message
> saying "Source Feature" and "Target Feature" must be owned by the domain
> element or its super type error
>
> But I cant actually create a super type for these classes as they are
> distinct in nature
>
> Any pointers or help on how to connect them via GMF is much appreciated
>
> Thanks,
> Kamesh
|
|
|
Re: Links in GMF [message #172395 is a reply to message #172371] |
Wed, 13 February 2008 11:25 |
Eclipse User |
|
|
|
Originally posted by: kamesh.sampath.gmail.com
Thanks tobais ! i found the issue , it was with my model , i rectified it
and was able to work on it .
I have another peculiar issue, i am having two links from my Domain
Element one say X - is the 1-1 relation to a Type A and another say Y -
is 0-N to Type A again but they are identied but two different
containement references of my Domain Element.
When i create the link mapping i was able to visualize both the
connections correctly , its also gets persisted in the EMF model, then i
saved and closed the editor , but when reopen the editor the Link Y
disappears though its still in the underlying EMF model.
Any input on this peculiar behavior is appreciated . I am i missing
something ???
Thanks.
Kamesh
|
|
|
Powered by
FUDForum. Page generated in 0.02772 seconds