|
Re: Import Ecore types to own model [message #419712 is a reply to message #419711] |
Tue, 03 June 2008 12:49 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02555 seconds