Book a Demo

Author Topic: Why must I generate code for outer classes first?  (Read 3032 times)

Pimenta

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Why must I generate code for outer classes first?
« on: September 06, 2008, 04:49:30 am »
Hi.

Im my project I have just one (1) class. So, generating code for such class should be simple. However, always when I try to generate, the software complains: "Generation of code for inner classes is only supported through generating the outer class." Why must I consider generationg code for an outer class, if I have just one class? If my classe is an inner class, where is the outer one?

Thanks.

Rodrigo Pimenta Carvalho.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Why must I generate code for outer classes fir
« Reply #1 on: September 06, 2008, 10:28:13 am »
[edit]See Simon's post below.[/edit]

Just a guess here, but could it be that there is no namespace root? Or perhaps you have a package set as a namespace root where it should not be.

Select and right-click the package (the one that contains your class) in the Project Browser and toggle the namespace setting. See if that makes a difference.


Otherwise, play with the options on the generation dialog a bit and see if that changes things.

David
« Last Edit: September 09, 2008, 01:26:24 am by Midnight »
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Why must I generate code for outer classes fir
« Reply #2 on: September 08, 2008, 08:22:58 am »
What is your class nested inside?

If it isn't a package (namespace root or not is irrelevant) then EA will give this message.