[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: "Initialize by loading" & DocumentRoot

Fabrice,

I tried this with the Library.xsd could run the generated example just fine, i.e., load the model from the XSD, set Initialize by Loading to true, General All, and run LibraryExample.java as a Java application... The editor works too. What could I try to reproduce the problem?


Fabrice Dubach wrote:
Hi,

I saw a strange behavior with my EMF model since I used 2.5M1 (I was previously using EMF 2.4) :

The generated code cannot instanciate any more objets because the getESTructuralFeature method seems to return bad initialized EStructuralFeature objects (For exemple, the createInitialModel of the generated editor fails).

After looking about this bug, I found that this is happening when an ecore model is generated from a schema which have elements (so that there is a generated documentRoot), and when setting the "intialize by loading" to true (My model is quite large, but it is reproducible with a little one).

I'm very confused with this tricky trouble... How could I manage it ?

Fabrice Dubach