Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Links in GMF
Links in GMF [message #172325] Tue, 12 February 2008 16:29 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Representing the domain object to Diagram elements
Next Topic:Decorating Labels
Goto Forum:
  


Current Time: Thu Mar 28 09:07:26 GMT 2024

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

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

Back to the top