Initial Model Object [message #476312] |
Sat, 07 February 2009 06:33  |
Eclipse User |
|
|
|
I am using 0.9.0M4 on Windows.
When I create a new UML Model under the Example EMF Model Creation
Wizards I am given the choice of three Model Objects to create: Model,
Package or Profile. I have always chosen Model but I was wondering what
a typical scenario would be for which Package was the right choice. I
want to have one model per project with multiple packages. Should I
create a Model then create multiple packages in the Class Diagram or
should I create one Model and multiple Packages?
When I do choose Model and Initialize a/the Class Diagram, the icon I
see in the top-left corner of the diagram is labelled Package. Is that a
bug? If I give that a name then look in the .uml file the name I entered
is an attribute on the root Model element.
John Colgrave
|
|
|
Re: Initial Model Object [message #476316 is a reply to message #476312] |
Wed, 11 February 2009 06:43  |
Eclipse User |
|
|
|
Hi John,
> ...I want to have one model per project with multiple packages.
> Should I create a Model then create multiple packages in the Class
> Diagram or should I create one Model and multiple Packages?
John, I think you can get a more comprehensive answer when to use a Model,
and when to use a Package in UML2 newsgroup.
Although a Model and a Package hold slightly different functionality, the
diagram editor process them the same way. From the point of view of diagram
editor there is no difference what to create - a Model or a Package. Top-level
_Model_ with inner packages will work fine, top-level _Package_ with inner
packages will work fine as well.
> When I do choose Model and Initialize a/the Class Diagram, the icon I
> see in the top-left corner of the diagram is labelled Package. Is that
> a bug?
Yes, it is, in accordance with the specification a model should have '<<model>>'
label on the top. Feel free to submit a bug.
Best wishes,
Tanya.
|
|
|
Re: Initial Model Object [message #623598 is a reply to message #476312] |
Wed, 11 February 2009 06:43  |
Eclipse User |
|
|
|
Hi John,
> ...I want to have one model per project with multiple packages.
> Should I create a Model then create multiple packages in the Class
> Diagram or should I create one Model and multiple Packages?
John, I think you can get a more comprehensive answer when to use a Model,
and when to use a Package in UML2 newsgroup.
Although a Model and a Package hold slightly different functionality, the
diagram editor process them the same way. From the point of view of diagram
editor there is no difference what to create - a Model or a Package. Top-level
_Model_ with inner packages will work fine, top-level _Package_ with inner
packages will work fine as well.
> When I do choose Model and Initialize a/the Class Diagram, the icon I
> see in the top-left corner of the diagram is labelled Package. Is that
> a bug?
Yes, it is, in accordance with the specification a model should have '<<model>>'
label on the top. Feel free to submit a bug.
Best wishes,
Tanya.
|
|
|
Powered by
FUDForum. Page generated in 0.04088 seconds