Book a Demo

Author Topic: Generate one file for multiple classes  (Read 3141 times)

philreif

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Generate one file for multiple classes
« on: October 11, 2004, 03:42:12 am »
Hello,

I'm using EA to generate Delphi.NET classes. I encountered one problem, however: every class will always be in a unit of its own, which poses a problem for the compiler - the current Delphi compiler will create one namespace per unit, and I need all classes to be in one single namespace.

Is there a way to generate one (big) file with all classes and their implementations? I'm aware that this is far from clean design and source code maintenance is hard, but the compiler leaves us very little choice.

Thanks for any ideas -
Philipp Reif

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Generate one file for multiple classes
« Reply #1 on: October 11, 2004, 02:48:11 pm »
Set all the classes to have the same file and then select in the menu Project -> Source Code Engineering -> Generate Package Source Code

Alternatively, you should be able to set them all to the same file and EA can synchronise the new classes into the same file (unit)

Simon