Book a Demo

Author Topic: Code Generation (Customise Packages)  (Read 2604 times)

bernardinis

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Code Generation (Customise Packages)
« on: March 25, 2004, 03:21:23 pm »
I have currently built my class diagrams and placed them within the appropriate packages corresponding to the JAVA naming convention under the logical model package.

The problem is, when I generate the source code, the root package name is Logical Model (which is invalid when it comes to compiling). Instead of generating the code from the logical model level I went deeper into the structure and attempted to generate the source code from there with the same results.

Is there a way to customise the packaging and names so that it discards the logical view package name without requiring modification to the way EA represents the packages in the tree view?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code Generation (Customise Packages)
« Reply #1 on: March 25, 2004, 05:36:33 pm »
Hi bernardinis,

There are two ways that I know of to work around this.

1.  Move the package that you want to generate outside of the Logical Model package, you can then right click on it generate and the root package will be the one directly under the logical view.

2.  Select the package that you want to be the root package and generate the source code from <Project>, <Source Code Engineering>, <Generate Package Source Code...>.

Simon
« Last Edit: March 25, 2004, 07:13:13 pm by simonm »