Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » how to create inter package links in an ecore model
how to create inter package links in an ecore model [message #429832] Mon, 04 May 2009 04:52 Go to next message
gitanjali punj is currently offline gitanjali punjFriend
Messages: 59
Registered: July 2009
Member
Hi,
I have an ecore model which has 1 pkg say "top" and inside it we have 2
packages "A" and "B".
"Top" has no classes in it but 'A' pkg has class 'a1' inside it and pckg
'B' has class 'b1' inside it.
An association between classes a1 and b1 exist.
Now when i try to create its user model the inner packages get separated
out as separate model like A model and B model.
So how do i create a user model which will help to establish the link
between classes in separate packages.
Isn't there a way, where instead of getting inner packages separated out,
a consolidated model of top package is available in which i can then model
the associations becuase then in that case both a1 and a2 classes will be
under the same package "top".
Can you send a demo ecore user model as the solution for this question?
How does emf resolve these inter package dependencies?
Re: how to create inter package links in an ecore model [message #429834 is a reply to message #429832] Mon, 04 May 2009 08:29 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Gitanjali,

Comments below.

gitanjali punj wrote:
> Hi,
> I have an ecore model which has 1 pkg say "top" and inside it we have
> 2 packages "A" and "B".
Personally I generally avoid nesting of packages...
> "Top" has no classes in it but 'A' pkg has class 'a1' inside it and
> pckg 'B' has class 'b1' inside it.
> An association between classes a1 and b1 exist.
> Now when i try to create its user model the inner packages get
> separated out as separate model like A model and B model.
Yes, each package is a separate model. Their physical nesting is
irrelevant.
> So how do i create a user model which will help to establish the link
> between classes in separate packages.
I'm not sure I follow the question.
> Isn't there a way, where instead of getting inner packages separated
> out, a consolidated model of top package is available in which i can
> then model the associations becuase then in that case both a1 and a2
> classes will be under the same package "top".
If you want one package, that's how you should model it.
> Can you send a demo ecore user model as the solution for this question?
I'm really not following what you're having a problem with.
> How does emf resolve these inter package dependencies?
EMF's GenModel uses the Ecore model, so of course this just works.
That's why I don't understand the nature of your question...


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:no EMF Model Creation Wizard
Next Topic:EMF/GMF does not update XMI file
Goto Forum:
  


Current Time: Sat Apr 27 00:09:12 GMT 2024

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

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

Back to the top