Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF model with multiple resources
EMF model with multiple resources [message #1220215] Tue, 10 December 2013 07:23 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
I am implementing a RCP application where i want to save emf model project for example of this format:
-project
-ProjectModel.xmi
-ProjectVisualization1.xmi
-ProjectVisualization2.xmi

So can i save EMF model into multiple resources? and how do i load model from multuple resources?

Cheers,


Re: EMF model with multiple resources [message #1220241 is a reply to message #1220215] Tue, 10 December 2013 09:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25917
Registered: July 2009
Senior Member
The generated editor works with a resource set and that can contain
multiple resources and the editor will save all resources in the
resource set when it saves...

On 10/12/2013 1:23 PM, ModelGeek Mising name wrote:
> I am implementing a RCP application where i want to save emf model
> project for example of this format:
> -project
> -ProjectModel.xmi
> -ProjectVisualization1.xmi
> -ProjectVisualization2.xmi
>
> So can i save EMF model into multiple resources? and how do i load
> model from multuple resources?
>
> Cheers,
>
>
>
Re: EMF model with multiple resources [message #1220593 is a reply to message #1220241] Thu, 12 December 2013 11:21 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
thanks!

I would like to know the basic machanism for saving and loading multiple resources.

I have more than 1 ecore files. One for model and other for visualization of the model.

So now my project will consist of one model resource and multiple visualization resources. So i need to save model and visualization togather. I do not want to each editor to save it own resource, i want a global save where first model resource with visualization resource can be saved togather in specific file structure.

Can you please eplain basic machanism for saving and loading multiple resources?

Thanks!

[Updated on: Thu, 12 December 2013 11:29]

Report message to a moderator

Re: EMF model with multiple resources [message #1220684 is a reply to message #1220593] Thu, 12 December 2013 23:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25917
Registered: July 2009
Senior Member
Comments below.

On 12/12/2013 5:21 PM, ModelGeek Mising name wrote:
> thanks!
>
> I would like to know the basic machanism for saving and loading
> multiple resources.
The generated editor does that.
>
> I have more than 1 ecore files. One for model and other for
> visualization of the model.
How many models you have is not related to how many resources you have
that contain instances.
> So now my project will consist of one model resource and multiple
> visualization resources. So i need to save model and visualization
> togather. I do not want to each editor to save it own resource, i want
> a global save where first model resource with visualization resource
> can be saved togather in one specific file structure.
Then you'd need some kind of shared editing domain as supported for the
transactional framework.
>
> Can you please eplain basic machanism for saving and loading multiple
> resources?
It's more of a question of how to share editing domains across multiple
editors because the generated editor already saves all resources in the
resource set.
>
> Thanks!
>
Re: EMF model with multiple resources [message #1220702 is a reply to message #1220684] Fri, 13 December 2013 03:20 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
is there any eample/tutorial available for sharing editing domain in generated editors?

thanks for help!
Re: EMF model with multiple resources [message #1220710 is a reply to message #1220702] Fri, 13 December 2013 03:51 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25917
Registered: July 2009
Senior Member
Just what you can find here:
http://www.eclipse.org/modeling/emf/?project=transaction

On 13/12/2013 9:20 AM, ModelGeek Mising name wrote:
> is there any eample/tutorial available for sharing editing domain in
> generated editors?
>
> thanks for help!
Re: EMF model with multiple resources [message #1220733 is a reply to message #1220710] Fri, 13 December 2013 05:21 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
Are generated editors based on Eclipse 3x? Or Are generated editors based on Eclipse 4x?
Re: EMF model with multiple resources [message #1220792 is a reply to message #1220733] Fri, 13 December 2013 10:35 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25917
Registered: July 2009
Senior Member
They work with either.

On 13/12/2013 11:21 AM, ModelGeek Mising name wrote:
> Are generated editors based on Eclipse 3x? Or Are generated editors
> based on Eclipse 4x?
Previous Topic:Refreshing EMF resources through a byte[]
Next Topic:XCore: refering from xmi/instance file to xcore file
Goto Forum:
  


Current Time: Thu Jul 24 11:40:37 EDT 2014

Powered by FUDForum. Page generated in 0.05116 seconds