Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Import Ecore types to own model
Import Ecore types to own model [message #419711] Tue, 03 June 2008 12:14 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hello,

i try to add the EcoreMM types (EString, etc.) into my model instance of an
own metamodel defined with Ecore. In the intance editor, i tried to load the
resource, which holds the ecore mm (org.eclipse.emf.ecore...jar). But when i
locate the jar, the importer fails with an SAXException.

org.eclipse.emf.ecore.xmi.XMIException: org.xml.sax.SAXParseException:
Content is not allowed in prolog.
(file:/D:/programme/eclipse_integrated/plugins/org.eclipse.e mf.ecore_2.3.1.v200709252135.jar,
1, 1)

Does anyone can help me, how to import the ecore mm for reusing its types?

Thx
Timothy
Re: Import Ecore types to own model [message #419712 is a reply to message #419711] Tue, 03 June 2008 12:49 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Timothy,

Don't you mean to specify something like
jar:file:/D:/programme/eclipse_integrated/plugins/org.eclips e.emf.ecore_2.3.1.v200709252135.jar!/model/Ecore.ecore
to specify an XML file in the jar rather than justing pointing the
resource at the entire jar, which obviously isn't an XML file. Likely a
URI of the form platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore
would be better if you're running in an Eclipse/OSGi application.


Timothy Marc wrote:
> Hello,
>
> i try to add the EcoreMM types (EString, etc.) into my model instance of an
> own metamodel defined with Ecore. In the intance editor, i tried to load the
> resource, which holds the ecore mm (org.eclipse.emf.ecore...jar). But when i
> locate the jar, the importer fails with an SAXException.
>
> org.eclipse.emf.ecore.xmi.XMIException: org.xml.sax.SAXParseException:
> Content is not allowed in prolog.
> (file:/D:/programme/eclipse_integrated/plugins/org.eclipse.e mf.ecore_2.3.1.v200709252135.jar,
> 1, 1)
>
> Does anyone can help me, how to import the ecore mm for reusing its types?
>
> Thx
> Timothy
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EventLoopProgressMonitor.isCanceled produce a strange refresh
Next Topic:Re: EMF Build Errors
Goto Forum:
  


Current Time: Sat Apr 27 01:37:01 GMT 2024

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

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

Back to the top