Author Topic: Generate code path - is this a bug?  (Read 3372 times)

joyce

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Generate code path - is this a bug?
« on: May 27, 2004, 03:32:12 pm »
We have a very large UML class diagram for C#. And have just reached the stage where we are ready to start coding, there seems to be a problem:

I select the package containing about 300 classes and generate the source code.

All is basically fine at this point.

Now I make a change in one of the generated class files and save it, go back to EA and select that class and Synchronize Model from the popup right click menu.

Nothing happens.

If I right click on that one class and select Generate Code, then manually set the Path field to the correct path of the previously generated source code file, I can then click cancel, go back and synchronize!

This means that the initial auto-generate from the package level did not save the path to link the class to the source code file.

This is obviously a nightmare as this one package alone has over 300 classes in it.

We are not interested in manually editing thousands of classes to point to their own generated source code.

What gives?  Is there a solution here?  Am I wrong in expecting that any time I generate code that EA will save the link between the class and the file it created itself regardless of whether I do it from the package level or one by one class by class?

P.S. language in question is C# and version of EA is 4.00.723
« Last Edit: May 27, 2004, 03:35:01 pm by JCardinal »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Generate code path - is this a bug?
« Reply #1 on: May 27, 2004, 05:10:20 pm »
Hi ,

If you are using the generate package dialogue then I can think of one possible problem.  If you have "Retain Existing File Paths" checked then EA shouldn't set your file paths at all.  Uncheck that when using the "Auto generate files" option and the file names should be set.

Also, I'm not sure if there has been an update to file paths being set since your build of EA, you could try the latest build.

That's just a possibility that I can see.

Simon

joyce

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Generate code path - is this a bug?
« Reply #2 on: May 27, 2004, 05:56:31 pm »
Thanks - that was the ticket - also applied the update.