Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
shche
Post subject: package name in the class diagram  PostPosted: Apr 01, 2010 - 03:48 PM
Registered Member
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
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
support-chakri
Post subject: RE: package name in the class diagram  PostPosted: Apr 07, 2010 - 09:22 AM
Registered Member
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.
 
 View user's profile Send private message  
Reply with quote Back to top
shche
Post subject: RE: package name in the class diagram  PostPosted: Apr 07, 2010 - 01:31 PM
Registered Member
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
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
Support-Brian
Post subject: RE: package name in the class diagram  PostPosted: Apr 08, 2010 - 10:52 AM
Moderator
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
shche
Post subject: RE: package name in the class diagram  PostPosted: Apr 08, 2010 - 02:23 PM
Registered Member
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
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
support-chakri
Post subject: RE: package name in the class diagram  PostPosted: Apr 09, 2010 - 12:09 PM
Registered Member
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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits