Book a Demo

Author Topic: New name for class not showing when code generated  (Read 3018 times)

[email protected]

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
New name for class not showing when code generated
« on: August 16, 2005, 06:38:44 am »
Good morning,

I created a data class named EquifaxRawData.  I renamed the class to EquifaxData but when I generate the code, it is being sent to EquifaxRawData instead of the new name.

I am currently using verion 4.5 build 740.  I tried searching to see if this had been reported as a bug but did not see it anywhere.

Has anyone else seen this problem?  If so, has it been fixed in a release?  We normally do not upgrade until one revision after a major release to give time for problems to shake out.

Ok, some more information.  I had generated source code with the old name.  If I delete the generated file and then generate the code, EA picks up the changed name.

Thanks,

Richard
« Last Edit: August 16, 2005, 07:28:03 am by [email protected] »

thomaskilian

  • Guest
Re: New name for class not showing when code gener
« Reply #1 on: August 16, 2005, 07:43:12 am »
I'm no code junkie but you might need to adjust the filename in the properties window. Probably this will not synch...

[email protected]

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: New name for class not showing when code gener
« Reply #2 on: August 16, 2005, 08:17:05 am »
That was how we changed the name of the class.  To check on our "hypothesis" I opened the .eap file with notepad and did a search on the old name.  Voila!  The old name and file location were still stored in the .eap, just nowhere that we could get to to change.  As I noted, when I deleted the generated code with the old name and regenerated the class, it "fixed" the problem.

Thanks for the suggestion, though.

thomaskilian

  • Guest
Re: New name for class not showing when code gener
« Reply #3 on: August 16, 2005, 10:22:29 am »
You should look into the properties window (View/Properties). There's a Filename which points to the generated file. Likely this name is not synched when you rename the class. You can edit this field as usual.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: New name for class not showing when code gener
« Reply #4 on: August 16, 2005, 04:25:01 pm »
Quote
You should look into the properties window (View/Properties). There's a Filename which points to the generated file. Likely this name is not synched when you rename the class. You can edit this field as usual.

Thomas is correct.  The filename is not updated when a class name is changed.

Additionally, the code generation will be unable to find any class that has been renamed, and will add a new class into the file.

Simon