Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » HowTo split up an Ecore model?
HowTo split up an Ecore model? [message #416481] Tue, 05 February 2008 09:57 Go to next message
Morten MacFly is currently offline Morten MacFlyFriend
Messages: 69
Registered: July 2009
Member
Dear all,
I have modelled an Ecore model that already consists of several
(sub-)Ecore models (initially, by design). Unfortunately one of these
sub-models has grown too big so I would like to split this up, too
(refactoring). But how do I do that? I created a new Ecore model and
tried via copy/paste but this does not work. It seems I cannot copy
Ecore contents at all between Ecore models?!
What to do? Any help is greatly appreciated.
With regards, Morten.
Re: HowTo split up an Ecore model? [message #416486 is a reply to message #416481] Tue, 05 February 2008 11:26 Go to previous message
Adrian Price is currently offline Adrian PriceFriend
Messages: 61
Registered: July 2009
Member
Morten,

You should be able to achieve this by first creating your new Ecore models
on disk. Then open the original model and load the new models into the same
resource set (context menu -> Load Resource...). You should then be able to
drag-drop model elements between the loaded resources. The only proviso, I
believe, is that the new resources will need to contain new packages.

Rgds,

Adrian.

"Morten MacFly" <mac-fly@gmx.net> wrote in message
news:fo9bum$vja$1@build.eclipse.org...
> Dear all,
> I have modelled an Ecore model that already consists of several
> (sub-)Ecore models (initially, by design). Unfortunately one of these
> sub-models has grown too big so I would like to split this up, too
> (refactoring). But how do I do that? I created a new Ecore model and
> tried via copy/paste but this does not work. It seems I cannot copy Ecore
> contents at all between Ecore models?!
> What to do? Any help is greatly appreciated.
> With regards, Morten.
Previous Topic:Unset isMany EStructuralFeature using emf's Command
Next Topic:EMF Transaction ResourceSetDomainLink.isAdapterForType(IEditingDomainProvider.class) ...
Goto Forum:
  


Current Time: Wed Apr 24 23:28:00 GMT 2024

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

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

Back to the top