Book a Demo

Author Topic: Generate Java Package  (Read 3395 times)

Stefan

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Generate Java Package
« on: December 13, 2004, 05:25:01 pm »
Could not find this option ... Where can I setup the correct package name when I generate Java code. For example if my Java source code is in Logical Model->Some Package-> com->steola->MyClass
how I can generate MyClass with header:
package com.steola
and not:
package Logical Model.Some Package.com.steola ?

Or the "UML" package has to start with com->steola?

thanks

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Generate Java Package
« Reply #1 on: December 13, 2004, 06:19:40 pm »
You need to right click on the last package that you don't want to appear in the package name, in your case "Some Package", and select "Package Control | Set Namespace Root". Then re-generate.

HTH
The Sparx Team
[email protected]