Book a Demo

Author Topic: Re-Importing Classes  (Read 5285 times)

greygor

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re-Importing Classes
« on: March 14, 2002, 02:48:08 am »
As we are all aware development is a dynamic process and things change.

When documenting attributes and operations is there a way you could re-import a class and by so doing, preserve what is already entered for that class, add any new items and remove items that no longer exist in that class.

As all the data is stored in a database I would have thought this was possible.


gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Re-Importing Classes
« Reply #1 on: March 14, 2002, 02:00:33 pm »
Hi Greygor,

WHat you describe sounds like the 'Synchronize' function that already exists in EA - if you select a class in a diagram, then the Synchronize function is available from the context menu uner code generation, or by pressing Ctrl-R or using the code generation toolbar/synchronize button.

This function will re-parse the target source file and merge the current class with the parsed input. Methods and attributes already in the class are not touched. New methods and attributes are added if found. Methods or attributes in the EA Class but not in the parsed input are deleted.

If I have misconstrued your question let me know, otherwise I hope this helps,

Geoff Sparks

greygor

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Re-Importing Classes
« Reply #2 on: March 15, 2002, 05:25:35 am »
Yes, but if you make changes to an existing method or attribute then any notes that you have made about that method are cleared thus negating the usefulness of it. :-[