Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Materialize Ecore metamodel from registry(Using the model registry as a file source)
Materialize Ecore metamodel from registry [message #1844049] Mon, 30 August 2021 00:04 Go to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

As part of a workflow I would to store the Ecore metamodel in a file in ecore or emfatic syntax. Can I obtain the content from the package registry or does this have to be done differently?

I have tried the following:
<epsilon.emf.loadModel name="ecore" modelUri="http://www.eclipse.org/emf/2002/Ecore" metamodelUri="http://www.eclipse.org/emf/2002/Ecore" />


This fails, as it attempts to load from the resource. Maybe I should use a platform URI?
Re: Materialize Ecore metamodel from registry [message #1844050 is a reply to message #1844049] Mon, 30 August 2021 00:07 Go to previous message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

Self answer: use platform uri like this:

<epsilon.emf.loadModel name="ecore" modelUri="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore" metamodelUri="http://www.eclipse.org/emf/2002/Ecore" />

[Updated on: Mon, 30 August 2021 00:08]

Report message to a moderator

Previous Topic:Artficial start for workbench
Next Topic:Loading model with multiple resources
Goto Forum:
  


Current Time: Sat Apr 27 09:46:41 GMT 2024

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

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

Back to the top