Book a Demo

Author Topic: Reverse Eng - Attach existing class to source?  (Read 11455 times)

tonyhedge

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Reverse Eng - Attach existing class to source?
« on: May 19, 2009, 01:23:10 am »
Suppose I've created a C++ class during an early stage of design, with one or two operations etc.

I then implement that class in source code, add a few more operations. And no, I didn't use source code generation!).

I then want to synchronise my model and my source code for that class.

I can't find a way of setting up the relationship between the manually created class and the manually created source code. The only way I seem to be able to do it is by "Import C++ Files" for that file, but that then creates a new class in my modewl with the same name. If I delete my old class, that breaks all my diagrams etc, and also loses any other stuff (strereotypes etc) which I may have added to my original 'manual' task.

Is there any way of creating the relationship between the class and the source file manually, so that I can achieve this?

All suggestions gratefully received!

Thanks
Tony

PS - isn't it always the way? You spend half-a-day trying to do something. post a query and THEN find the answer yourself a few minutes later! View/Properties/Class Settings/Filename - Hope this helps someone!
« Last Edit: May 19, 2009, 02:17:23 am by tonyhedge »
"Interrupts happen!"