Book a Demo

Author Topic: code generation Java  (Read 2696 times)

Andrefern

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
code generation Java
« on: June 05, 2006, 04:47:08 am »
Hi,

I'm trying to generate class1 code from the structure bellow:

MyProject
---Implementation
------packet1
----------class1
---java.lang
------Exception

where Class1 inherits from Exception.

It works and the output shows "import  java.lang.Exception"

Another way, i'd like to put all of my external libraries under External packet and set java.lang as namespace root.

MyProject
---Implementation
------packet1
----------class1
---External
------java.lang
----------Exception

Unfornatelly, it doesn't generate the line "import  java.lang.Exception" ???.

Have I done something wrong?

Thanks.



Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: code generation Java
« Reply #1 on: June 05, 2006, 02:56:09 pm »
If you set java.lang as a namespace root you're telling EA that it represents the root namespace, and therefore no namespaces/packages should be generated for it.  Instead you should set External as a namespace root.