[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: Model Migration

Hello again

Hmmm. That doesn't sound good. This suggests to me that if you remove XMLResource.OPTION_RECORD_UNKNOWN_FEATURE it you'll get an package/class not found exception which suggests that the namespace in your instance is not matching the models you are registering.

It threw an exception and I've also figured out the problem now. As shown in the recipe (--> getExtendedMetaData()) I'm putting two entries into the ResourceSet's package registry.
I wanted to find out why the "package not found" exception occurs, so I set a breakpoint on EPackageRegistryImpl.getEPackage(..) and inspected the map contents. None of the two entries were mapped...


I've now modified the getExtendedMetaData() method to put the entries into EPackage.Registry.INSTANCE and now everything works!

Thank you very much for your help!

Best regards,
Ömer Yildiz