Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: mattinger on February 10, 2004, 07:13:12 am

Title: Java Code Generation Problems
Post by: mattinger on February 10, 2004, 07:13:12 am
Does anyone know how to change the Java code generation to not use the View name as part of the generated "package" statement in the java file?

For example, if I put classes under the "Static Model" view, when i generate classes, the package statement is generated similar to the following:

package Static Model.com....;

I've looked under the code generation templates, but have had no luck.
Title: Re: Java Code Generation Problems
Post by: Tjerk on February 11, 2004, 12:16:06 am
Hi Mattinger,

Try searching for "Set namespace root..." in the forum and the Help files. You should be able to set the root of the packages at any wanted depth in your project (multiple times).

Greetings,
Tjerk