Book a Demo

Author Topic: namespace setting  (Read 3110 times)

YuraL

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
namespace setting
« on: March 10, 2006, 06:50:22 am »
Hi,
I have been trying to set a sub-package as a namespace root.  However, when I do this, EA prepends the packages above it to the namespace name.  For me, this has meant that I am unable to synchronize my model w/ my current VS2005 project using MDG.  Does anyone know of a way to keep EA from prepending the super-packages to a namespace when I set a sub-package as the namespace root?
Any help would be greatly appreciated.
Thank!
Yuri

dirc

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: namespace setting
« Reply #1 on: March 10, 2006, 07:07:05 am »
The namespace is output by the code generation templates, which you can manipulate.

You need to conditionally set the namespace to be as you define it rather than the package structure, which is the default.

I suggest you maybe put a tag on the classes you wish to treat this way, then edit the template to query this tag and output the namespace appropriately.

As to how to do this.. well, there is a load of documentation you need to read!
dirc