Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » how to load other project's ecore resource(how to load other project‘s ecore resource)
how to load other project's ecore resource [message #1851991] Mon, 25 April 2022 09:31 Go to next message
fang li is currently offline fang liFriend
Messages: 5
Registered: April 2022
Junior Member
Hello,

I have two ecore resource in two different project.

When I want to load the b.ecore in the a.ecore.I cant find it in 'browse registered package'.

But if I browse from workspace,it will generate the b.ecore model in project a.

But it should call the project b directly.

Please help me solve this problem,thank you.
Re: how to load other project's ecore resource [message #1852006 is a reply to message #1851991] Mon, 25 April 2022 17:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
To be present in the Browse Registered Packages, would have to be installed in the IDE as a plugin which is not the case. If you're using these to wrap with a GenModel you should load it from the target platform or the workspace.

See this recent post to ensure that you create/reload the a's *.genmodel, that the a's GenModel uses/references b's Genmodel rather that a's GenModel also containing a GenPackage for b (duplicating the generation of b's classes):

https://www.eclipse.org/forums/index.php/mv/msg/1110653/1851951/#msg_1851951


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: how to load other project's ecore resource [message #1852020 is a reply to message #1852006] Tue, 26 April 2022 00:59 Go to previous message
fang li is currently offline fang liFriend
Messages: 5
Registered: April 2022
Junior Member
Thank you so much!

It solve all my problems!
Previous Topic:How to keep the namespace prefix when saving a new model
Next Topic:How to avoid the output of an element path instead of its ID?
Goto Forum:
  


Current Time: Sat Apr 27 03:28:38 GMT 2024

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

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

Back to the top