Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Referencing model instances from different models/files
Referencing model instances from different models/files [message #537723] Thu, 03 June 2010 13:29 Go to next message
Yvette is currently offline YvetteFriend
Messages: 13
Registered: May 2010
Junior Member
Hello,
I am quite new to emf and I am sorry if this has been asked already.
I did the following:

I built an ecore Model A and then I generated the editors an create instances of my Model A.
Then I built a second model B and added this as a reference to one model element of model A. When I generate the editor I was able to load instances of model A as resources. But I am not able to get these resources in the dropdown List where I set the reference.

How can I do this?
Thanks
Yvette

I made a picture to show what I mean
http://farm5.static.flickr.com/4064/4665787029_39ee5cfa58_b.jpg

[Updated on: Thu, 03 June 2010 13:46]

Report message to a moderator

Re: Referencing model instances from different models/files [message #537768 is a reply to message #537723] Thu, 03 June 2010 15:23 Go to previous message
Yvette is currently offline YvetteFriend
Messages: 13
Registered: May 2010
Junior Member
I found out myself.
In model/ Plugin Project of Model B I did not set the plugin dependency to Plugin/Model A.
So I added Model A (Plugin) to my required plug-ins in project B and it works
Re: Referencing model instances from different files [message #537769 is a reply to message #537723] Thu, 03 June 2010 15:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Yvette,

Once you load a resource into the editor's resource set, any cell
editors should include objects from that resource (not the resources
themselves) in the set of values they allow, given of course that there
are objects are of the right type.


Yvette wrote:
> Hello,
> I am quite new to emf and I am sorry if this has been asked already.
> I did the following:
>
> I built an ecore Model A and then I generated the editors an create
> instances of my Model A.
> Then I built a second model B and added this as a reference to one
> model element of model A. When I generate the editor I was able to
> load instances of model A as resources. But I am not able to get these
> resources in the dropdown List where I set the reference.
>
> How can I do this?
> Thanks
> Yvette


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Running Teneo library example MySQL/Eclipselink problem.
Next Topic:[CDO] Catch remote changes from a CDOResource
Goto Forum:
  


Current Time: Thu Apr 25 08:09:51 GMT 2024

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

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

Back to the top