[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: Problems reloading a new XML schema

Ben,

Comments below.


Ben wrote:
Hi,

I need to update my genmodel with the new changes on my schema so I right-click on the genmodel file, select Reload... from the context menu, select my schema with the new changes, and click Finish.

The genmodel is updated, however, my ecore file is totally recreated instead of updated so it losses all the constraints declared on the EClassifier via an EAnnotation.
It's only the GenModel that's reconciled. You can specify constraints directly in the XSD as annotations using ecore:constraints="..."

Is there workaround for this so my ecore model is updated (like the genmodel) instead of being recreated?
Specifying everything you need directly in the .xsd is the way to go.

Thanks in advance!