Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » models referencing across editors (models referencing )
models referencing across editors [message #1117401] Thu, 26 September 2013 07:58 Go to next message
Salwa Alzahmi is currently offline Salwa Alzahmi
Messages: 10
Registered: June 2013
Junior Member
Hello,


I am kind of looking for a proper way to model this case.

I have like 4 generated editors for each ecore model that I created. "modela.a , modelb.b, modelc.c, modeld.d". However, there is a kind of references between the models, forexample : modela.a have elements called 'Node' which referencing elements Tree in model.B.
How when I am opening the editor of modela.a, I can retrieve the needed elements from modelb.b at the design time.

the only thing that I can think of is loading the other models as a resources in the editor.. Please do correct me if this is not a correct approach ..

Re: models referencing across editors [message #1117441 is a reply to message #1117401] Thu, 26 September 2013 08:50 Go to previous message
Felix Dorner is currently offline Felix Dorner
Messages: 32
Registered: March 2012
Member
On 26/09/2013 13:58, Salwa Alzahmi wrote:
> Hello,
>
> I am kind of looking for a proper way to model this case.
>
> I have like 4 generated editors for each ecore model that I created.
> "modela.a , modelb.b, modelc.c, modeld.d". However, there is a kind of
> references between the models, forexample : modela.a have elements
> called 'Node' which referencing elements Tree in model.B.
> How when I am opening the editor of modela.a, I can retrieve the needed
> elements from modelb.b at the design time.
> the only thing that I can think of is loading the other models as a
> resources in the editor.. Please do correct me if this is not a correct
> approach ..
>

Yes this is how it's done. But note that you can't have all 4 editors
open and modify around there.. Each editor has (by default) its own
"copy" of the underlying resources.
Previous Topic:ComposedAdapterFactory delegates to generated factory for dynamic EObject
Next Topic:[Xcore] abstract operation or derived feature
Goto Forum:
  


Current Time: Mon Oct 07 08:09:13 EDT 2013

Powered by FUDForum. Page generated in 0.02175 seconds