Skip to main content


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 11:33 Go to next message
John Colgrave is currently offline John ColgraveFriend
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 11:43 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
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 11:43 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
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: Fri Apr 19 11:37:50 GMT 2024

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

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

Back to the top