Book a Demo

Author Topic: Setting the namespace Root - Java Code Generation  (Read 3205 times)

jrw

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • NA Newbie
    • View Profile
Setting the namespace Root - Java Code Generation
« on: July 10, 2003, 03:34:09 pm »
I have a EA tree structure in my logical view that represents my Java class directory Structure. I want to set the package or namespace root to be the second from the botton. For example, my tree struct is: ../dir1/dir2/dir3. When I generate the java code, I wish the see the package  name at the top of the Java file to say "package dir2.dir3;" and not just "package dir3;" I wish to set dir2 as the package/namespce root, right?

I am not being to successful at setting the root to be dir2.  It seems like dir3 is the default. If you right click the package ther is an option to either Set it as the root or Clear it as the root.  This option does not seem to be working. Am I not doing this right?

-Thanks, JRW

mikey

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Setting the namespace Root - Java Code Generat
« Reply #1 on: July 17, 2003, 05:23:39 am »
I am fairly new to EA, but from what I can see the code generation is a little quirky in many areas including setting the namespace.

I found that if you have a folder structure dir1/dir2/dir3 then to get the package declaration of the form package dir2.dir3 then you have to right click on dir1 and choose the option to set as namespace root

mikey
« Last Edit: July 17, 2003, 05:24:41 am by headache »
Mikey

DavidT

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Setting the namespace Root - Java Code Generat
« Reply #2 on: August 19, 2003, 08:23:12 am »
I have a similar problem though my issue stem with code generation with vb.net.  I set all namesapce root and verified this through EA by going to the project/namespaces menu option.  When I generate my code, all of the class are generated in individual files and not in a single file as I would expect.  Is there a way to generate all class of the same namesapce in a single file?

---DavidT