facebook

package name in the class diagram

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #307296 Reply

    Leonid Shchervinsky
    Participant

    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

    #307420 Reply

    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.

    #307427 Reply

    Leonid Shchervinsky
    Participant

    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

    #307456 Reply

    Brian Fernandes
    Moderator

    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.

    #307471 Reply

    Leonid Shchervinsky
    Participant

    The UML tool should not allow you to use a period as part of the package name then…
    Thanks

    #307514 Reply

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: package name in the class diagram

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in