| [news.eclipse.modeling.m2m] Re: [ATL] ResourceFactory |
Hi Hugo,
Hugo Bruneliere wrote:
Eric MAES a écrit :Is it possible to specify the use of a ResourceFactory that is different from the XMIResourceFactoryImpl ?
In my case, it is necessary to override the ResourceFactory.createResource method in order to specify the use of XMLResource.OPTION_EXTENDED_META_DATA...
The ResourceSet used by the ATL EMF model handler is currently statically declared and initialized in the ASMEMFModel class (org.eclipse.m2m.atl.drivers.emf4atl plugin).
Basically, the XMIResourceFactoryImpl is used for every resources but you can look at the "init()" method in order to add more specific ResourceFactories to the ResourceSet if needed.
Thanks for your answer,