Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problems reloading a new XML schema
Problems reloading a new XML schema [message #423137] Tue, 23 September 2008 17:16 Go to next message
Ben is currently offline BenFriend
Messages: 46
Registered: July 2009
Member
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.

Is there workaround for this so my ecore model is updated (like the
genmodel) instead of being recreated?

Thanks in advance!
Re: Problems reloading a new XML schema [message #423152 is a reply to message #423137] Tue, 23 September 2008 19:43 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30813
Registered: July 2009
Senior Member
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!
>
Previous Topic:Problem loading XMI resource
Next Topic:Editing a generic attribute in the property sheet pane
Goto Forum:
  


Current Time: Wed Jan 22 21:37:24 GMT 2020

Powered by FUDForum. Page generated in 0.02678 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top