Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Initial Model Object
Initial Model Object [message #476312] Sat, 07 February 2009 06:33 Go to next message
John Colgrave is currently offline John Colgrave
Messages: 42
Registered: July 2009
Member
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 Go to previous message
Tatiana Fesenko is currently offline Tatiana Fesenko
Messages: 530
Registered: July 2009
Senior Member
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 Go to previous message
Tatiana Fesenko is currently offline Tatiana Fesenko
Messages: 530
Registered: July 2009
Senior Member
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.
Previous Topic:Access to UML Primitive Types
Next Topic:Symbols for different Association kinds
Goto Forum:
  


Current Time: Wed Jul 30 05:25:41 EDT 2014

Powered by FUDForum. Page generated in 0.04255 seconds