|
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 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02728 seconds