Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Linking different Models
Linking different Models [message #530557] Fri, 30 April 2010 07:42 Go to next message
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
Hello,
my question is if its possible to link model instances ?
A simple scenario would be:
One model to store customers into and a second model to store orders into -> When working in the order model to get access to the customers of the other model

Ideally I also want 2 metamodels, one for customers and one for orders.

Any ideas how to realise it ?


Kind regards
Patrick
Re: Linking different Models [message #530585 is a reply to message #530557] Fri, 30 April 2010 08:46 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,
yes that is absolutely possible. Models are registered via extension
points and can therefore even be in different plugins. My question would
be, why you want to split both meta models and not just use packages...
Cheers
Jonas

Patrick Schmitt wrote:
> Hello,
> my question is if its possible to link model instances ?
> A simple scenario would be: One model to store customers into and a
> second model to store orders into -> When working in the order model to
> get access to the customers of the other model
>
> Ideally I also want 2 metamodels, one for customers and one for orders.
>
> Any ideas how to realise it ?
>
>
> Kind regards
> Patrick
Re: Linking different Models [message #530660 is a reply to message #530585] Fri, 30 April 2010 13:05 Go to previous messageGo to next message
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
I am using packages already. I fear that the models get to big and confusing. One Metamodel is possible, then I could create many dynamic instances choosing different root entry points from the metamodel.
But with the default tree view editor an access to other instances is not possible, isnt it ?

Jonas wrote on Fri, 30 April 2010 04:46
Hi,
yes that is absolutely possible. Models are registered via extension
points and can therefore even be in different plugins. My question would
be, why you want to split both meta models and not just use packages...
Cheers
Jonas

Patrick Schmitt wrote:
> Hello,
> my question is if its possible to link model instances ?
> A simple scenario would be: One model to store customers into and a
> second model to store orders into -> When working in the order model to
> get access to the customers of the other model
>
> Ideally I also want 2 metamodels, one for customers and one for orders.
>
> Any ideas how to realise it ?
>
>
> Kind regards
> Patrick

[Updated on: Fri, 30 April 2010 13:10]

Report message to a moderator

Re: Linking different Models [message #530733 is a reply to message #530660] Fri, 30 April 2010 16:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Patrick,

All the generated editors, including the Sample Ecore Editor support
Load Resource... that lets you load another resource and thereby gain
access to the objects in that resource. I think that's all you're
asking for.


Patrick Schmitt wrote:
> I am using packages already. I fear that the models get to big and
> confusing.
>
> Jonas wrote on Fri, 30 April 2010 04:46
>> Hi,
>> yes that is absolutely possible. Models are registered via extension
>> points and can therefore even be in different plugins. My question
>> would be, why you want to split both meta models and not just use
>> packages...
>> Cheers
>> Jonas
>>
>> Patrick Schmitt wrote:
>> > Hello,
>> > my question is if its possible to link model instances ?
>> > A simple scenario would be: One model to store customers into and a
>> > second model to store orders into -> When working in the order
>> model to > get access to the customers of the other model
>> > > Ideally I also want 2 metamodels, one for customers and one for
>> orders.
>> > > Any ideas how to realise it ?
>> > > > Kind regards
>> > Patrick
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Linking different Models [message #530983 is a reply to message #530733] Mon, 03 May 2010 09:21 Go to previous message
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
Thanks for your hint, i tried the load ressource option, its excactly what i wanted.

Sincerly
Patrick

Ed Merks wrote on Fri, 30 April 2010 12:06
Patrick,

All the generated editors, including the Sample Ecore Editor support
Load Resource... that lets you load another resource and thereby gain
access to the objects in that resource. I think that's all you're
asking for.


Patrick Schmitt wrote:
> I am using packages already. I fear that the models get to big and
> confusing.
>
> Jonas wrote on Fri, 30 April 2010 04:46
>> Hi,
>> yes that is absolutely possible. Models are registered via extension
>> points and can therefore even be in different plugins. My question
>> would be, why you want to split both meta models and not just use
>> packages...
>> Cheers
>> Jonas
>>
>> Patrick Schmitt wrote:
>> > Hello,
>> > my question is if its possible to link model instances ?
>> > A simple scenario would be: One model to store customers into and a
>> > second model to store orders into -> When working in the order
>> model to > get access to the customers of the other model
>> > > Ideally I also want 2 metamodels, one for customers and one for
>> orders.
>> > > Any ideas how to realise it ?
>> > > > Kind regards
>> > Patrick
>
>

Previous Topic:Having annotated java extend other external interfaces
Next Topic:The feature 'mixed' of **** with 2 element values must have exactly 1 element value
Goto Forum:
  


Current Time: Thu Apr 25 09:12:38 GMT 2024

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

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

Back to the top