Book a Demo

Author Topic: Generate Namespaces  (Read 3150 times)

rabra

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Generate Namespaces
« on: March 05, 2008, 08:57:28 pm »
Hi,

generate code and reverse engineer is a fine thing in EA.

But one thing probably I could not yet manage and that is generating the namespace of a class.

If I forward engineer a whole package it is no problem because the namespaces are simply ignored.
But if I want to generate a single class, it would not be bad to have the namespace generated - especially when generating code means that beside my class (in C# - Code) there is generated a second one without namespace.

In EA my classes are in packages equivalent to my namespace structure.
In Tools / Options / Source code engineering / C# the option 'Generate name spaces' is true.

What else can I do to make EA generate my namespaces?

Thanx,

rabra

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Generate Namespaces
« Reply #1 on: March 06, 2008, 08:19:33 am »
Have a look at http://www.sparxsystems.com.au/EAUserGuide/index.html?namespaces.htm and make sure that the packages you want generated as namespaces are NOT set as namespace root.