|Re: RMF Standalone [message #997448 is a reply to message #997348]
||Mon, 07 January 2013 14:51
| Peter Pedron
Registered: January 2013
OK some findings I found out during testing:|
In order to serialize a ReqIF model in a standalone app, you have to use the ReqIFResourceSetImpl. That is NOT enough though: you have to register as well the appropriate ResourceFactory to the ResourceSet:
ResourceSet set = new ReqIFResourceSetImpl();
set.getResourceFactoryRegistry().getExtensionToFactoryMap().put("reqif", new ReqIFResourceFactoryImpl());
Using an eclipse-plugin project environment, everything is well initilialized and works transparently if the plugin depends on the pror.editor plugin.
There you can use the simple ResourcSetImpl without any factory registrations.
It would be interesting to know what the pror.editor does in order to enable this transparent use of the resourceset, I haven't figured it out yet...
[Updated on: Tue, 08 January 2013 13:38]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02777 seconds