Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Saving models into individual XMLResources?(Is it possible to save models into separate XML Resources and add them to the EMFStore)
Saving models into individual XMLResources? [message #1700272] Wed, 01 July 2015 11:46 Go to next message
Ravikanth Somayaji is currently offline Ravikanth SomayajiFriend
Messages: 49
Registered: July 2009
Location: Oxford
Member
As far as I can understand, all the models in an application need to be added into the localProject.getModels() so that they can be pushed into the EMFStore.

I was wondering if it is possible, that an individual file on my file system can be managed as individual XML Resources and be accessed via the localProject object?

The reason I ask is because I'm trying to retrofit a current design(individual file per model) into EMFStore and am finding it a bit messy to mash up all the existing models into one localProject model.

Also, the saving/commiting of models would may not be differentiated as the commit saves the entire project. Every application may not need to save the entire resource on the change of an individual model.

Any thoughts/ideas/explanations will be well appreciated.

Thanks
Re: Saving models into individual XMLResources? [message #1700429 is a reply to message #1700272] Thu, 02 July 2015 14:26 Go to previous message
Edgar Mueller is currently offline Edgar MuellerFriend
Messages: 89
Registered: March 2011
Member
Hi Ravikanth,

currently this is not supported. When adding elements to a project that
are contained in another resource, the expected behaviour is that these
elements will be moved to the project's resource (although, as you
already pointed out in the other thread, a problem with cross-resource
containments seems to exist, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=471703).

Do your models depend on each other? Maybe it would be feasible to
create multiple projects if they don't?

Cheers,
Edgar

Am 01.07.2015 um 13:46 schrieb Ravikanth Somayaji:
> As far as I can understand, all the models in an application need to be
> added into the localProject.getModels() so that they can be pushed into
> the EMFStore.
>
> I was wondering if it is possible, that an individual file on my file
> system can be managed as individual XML Resources and be accessed via
> the localProject object?
> The reason I ask is because I'm trying to retrofit a current
> design(individual file per model) into EMFStore and am finding it a bit
> messy to mash up all the existing models into one localProject model.
>
> Also, the saving/commiting of models would may not be differentiated as
> the commit saves the entire project. Every application may not need to
> save the entire resource on the change of an individual model.
>
> Any thoughts/ideas/explanations will be well appreciated.
>
> Thanks


--
Edgar Mueller

Get Professional Eclipse Support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:[EMFStore] Urgent - ModelElements not populated after shutdown and restart of application
Next Topic:XMLRPCException during commit
Goto Forum:
  


Current Time: Thu Apr 25 14:34:51 GMT 2024

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

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

Back to the top