On 1/25/10 12:37 PM, Andrea Aime wrote: > Justin Deoliveira ha scritto: >> Also to prevent further issues it would be nice if we could stay way >> from making manual changes to the emf model without keeping the >> genmodel in sync. That said i am well aware that EMF is scary and >> people have issues using it. So I have tried to write up an EMF >> reference guide of sorts which describes how to go about safely >> instrumenting generated EMF models: >> >> http://docs.codehaus.org/display/GEOT/Eclipse+Modeling+Framework > > Ah ha, good to see that nicely documented. > And... ah hem... this is not what I did the times I had to modify > the EMF models in the past. > What I did was instead to edit directly the ecore file and then > have everything regenerated starting from it. > While it is possible to do by hacking the .ecore files directly I don't advise it since again, the genmodel and ecore package can become out of sync. That said it can work, in fact that was how I fixed generation of the wcs 1.0 model, I had to hack the .genmodel and .ecore files directly. So it can be done... but should probably be discouraged against :)
> Not sure it this approach of mine is compatible with the one you > described and/or if modules I've touched with my approach can > be modified easily with the one you describe I think i fixed cases where the model had not been regenerated via annotated java. Regardless the models seem to be in good shape now so hopefully now that we have some documentation in hand it will be easier in the future. > > Please advise? :-) > > Cheers > Andrea -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
