Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Cross-references
Cross-references [message #782362] Mon, 23 January 2012 15:46 Go to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
Hi,

I have an Ecore model (rpc.ecore), from which I want to create
cross-references to another Ecore model (cpp.ecore). I've managed to add
a reference to cpp.genmodel from rpc.genmodel, but I cannot figure out
how to, for example, add a cross-reference from a class in rpc.ecore to
a class in cpp.ecore. When editing rpc.ecore in the EMF Ecore editor I
would like to see a list of types in cpp.ecore as well.

--
/Jesper
Re: Cross-references [message #782405 is a reply to message #782362] Mon, 23 January 2012 16:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Jesper,

You need to use Load Resource... from the context menu to load any other
Ecore model resource you'd like to reference. Once you do that, their
contents will be available in the appropriate property editors.


On 23/01/2012 4:46 PM, Jesper Eskilson wrote:
>
> Hi,
>
> I have an Ecore model (rpc.ecore), from which I want to create
> cross-references to another Ecore model (cpp.ecore). I've managed to
> add a reference to cpp.genmodel from rpc.genmodel, but I cannot figure
> out how to, for example, add a cross-reference from a class in
> rpc.ecore to a class in cpp.ecore. When editing rpc.ecore in the EMF
> Ecore editor I would like to see a list of types in cpp.ecore as well.
>
> --
> /Jesper


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Cross-references [message #782461 is a reply to message #782405] Mon, 23 January 2012 18:42 Go to previous message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
Ed Merks skrev 2012-01-23 17:53:
> Jesper,
>
> You need to use Load Resource... from the context menu to load any other
> Ecore model resource you'd like to reference. Once you do that, their
> contents will be available in the appropriate property editors.

Neat. Thanks!

--
/Jesper
Previous Topic:Binding ComboBox with changing InputList
Next Topic:[EMF Compare] Merge problem?
Goto Forum:
  


Current Time: Thu Apr 25 01:07:57 GMT 2024

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

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

Back to the top