|
Re: Problem serializing a model that references Ecore.ecore [message #430440 is a reply to message #430439] |
Wed, 20 May 2009 20:18 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Bryan,
EcoreResourceFactoryImpl uses this option to avoid that:
result.getDefaultSaveOptions().put(XMLResource.OPTION_URI_HA NDLER,
new URIHandlerImpl.PlatformSchemeAware());
Bryan Hunt wrote:
> My EMF workflow model has a non-containment reference to EClassifier.
> I customized the generated editor to automatically load Ecore.ecore so
> that I could set the reference value. Here's how I'm loading the
> Ecore.ecore:
>
> URI ecoreURI =
> URI.createPlatformPluginURI("/org.eclipse.emf.ecore/model/Ecore.ecore ",
> false);
> editingDomain.getResourceSet().getResource(ecoreURI, true);
>
> The references are being serialized as:
>
> <type xsi:type="ecore:EDataType"
> href=" ../../plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EStri ng "/>
>
> The problem is the ../.. What I really wanted was platform:/plugin/
> Any idea on what I'm doing wrong?
>
> Bryan
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03019 seconds