| Author |
Message |
|
|
Post subject: package name in the class diagram
Posted: Apr 01, 2010 - 03:48 PM
|
|
Registered Member


Joined: Jun 21, 2005
Posts: 57
|
|
I have given a package pack1.pack2 name. It got converted to pack1_pack2 in Java. Is this correct? what are some of the way of creating packages and subpackages on the class diagram. I know of only one - putting one package within another.
Thanks
Leonid |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: package name in the class diagram
Posted: Apr 07, 2010 - 09:22 AM
|
|
Registered Member


Joined: Apr 05, 2010
Posts: 68
|
|
Hi Leonid,
When you are trying to name a package as pack1.pack2, did you get a message saying "Package name must not be qualified"?
The package names will not accept ".".
Also please tell me what version of ME are you using?
Thanks,
Chakri. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: package name in the class diagram
Posted: Apr 07, 2010 - 01:31 PM
|
|
Registered Member


Joined: Jun 21, 2005
Posts: 57
|
|
Steps to recreate in ME 8.0 and ME 8.5 UML 1
Create package pack1.pack2
Create class within this package Test
Generate Java
end up with pack1_pack2.Test
NetBeans, on the other hand, generates pack1.pack2.Test ...
Thanks
Leonid |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: package name in the class diagram
Posted: Apr 08, 2010 - 10:52 AM
|
|
Moderator


Joined: Aug 21, 2004
Posts: 2339
|
|
Leonid,
You are correct, we do not support packages with qualified names for a variety of technical reasons. You do need to nest one package in the other for both our UML1 and UML2 tooling. |
_________________ Brian
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: package name in the class diagram
Posted: Apr 08, 2010 - 02:23 PM
|
|
Registered Member


Joined: Jun 21, 2005
Posts: 57
|
|
The UML tool should not allow you to use a period as part of the package name then...
Thanks |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: package name in the class diagram
Posted: Apr 09, 2010 - 12:09 PM
|
|
Registered Member


Joined: Apr 05, 2010
Posts: 68
|
|
Hi shche,
I'll ask the dev team and add it in the feature list. Just for information, it is happening in UML2.
Thanks,
Chakri. |
|
|
| |
|
|
|
 |
|
|