Book a Demo

Author Topic: Code Generation/ Reverse Engineering Delphi  (Read 3217 times)

Graham_Wade

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Code Generation/ Reverse Engineering Delphi
« on: June 10, 2004, 06:05:34 am »
Hi
  I'm evaluating EA and have reverse engineered an existing project in Delphi. I can see all of the attributes and operations but apart from that no code. Has it been lost or is it stored somewhere. Similarly I tried to forward engineering from the classes and although I can get the operation declarations I can't seem to find a way to enter the code for the operation in way that gets into the generated code file.

 Is what I'm trying possible? and if it is how do I do it?
Regards
Graham

thomaskilian

  • Guest
Re: Code Generation/ Reverse Engineering Delphi
« Reply #1 on: June 10, 2004, 06:46:51 am »
Try the Code Window (Alt+F7) from the Views menu.
« Last Edit: June 10, 2004, 06:47:27 am by thomaskilian »

Graham_Wade

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Code Generation/ Reverse Engineering Delphi
« Reply #2 on: June 10, 2004, 07:31:21 am »
Hi
  Sorry about the last post  ;D. I think you are misunderstanding what I was trying to do. In my model I would like to insert the code that the operation is to perform. I would then expect the code generation to insert this code inside the operation body in the generated file (which I could view using the code viewer). Currently I cannot find anyway of getting anything other that the operation signature into the class implementation body.
Regards
Graham

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code Generation/ Reverse Engineering Delphi
« Reply #3 on: June 10, 2004, 06:14:14 pm »
Hi,

Essentially EA doesn't actually bring in a copy of the operation bodies when importing code.  In the following thread I suggested a workaround for this purpose to another user.

http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.cgi?board=general;action=display;num=1086248345;start=5#5

That should work okay for code generation once you've entered the operation bodies in, but there isn't really anything you can do for reverse engineering of code.

Simon