Book a Demo

Author Topic: Code synchronization  (Read 5137 times)

andlil

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Code synchronization
« on: March 12, 2002, 10:13:24 pm »
Hi !

I have found EA most useful to document our projects.
I is the only tool I have ever used that does not generates
code full with "code tags" and that it is easy to add new
functions in developer studio and reverse engineers the
new functions into EA. With EA it is easy synchronize my
model with the code to have a model in synch with the code.

I use EA to create a skeleton of our system before writing
any code. In a later phase when I begin to code I use EA
to reverse engineer the new functions into the class diagram.
This works great but it would be nice if EA could have
a new button to synchronize several classes back to the
model. As it is now I have to mark each class and press the
synchronize button, similar to the bach generation button.

/Anders

BooBoo

  • Guest
Re: Code synchronization
« Reply #1 on: March 21, 2002, 02:08:44 pm »
No, you don't have too. If you want to generate source code for all classes, all you have to do is right click on the package (contains the classes) then select "Code Engineering" -> "Generate Source Code" This time, you select on class(es) that you want to generate then click on Generate button.

andlil

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Code synchronization
« Reply #2 on: March 21, 2002, 02:38:36 pm »
Yes I it's true for code generation. Mybe I have to explain
better how I work.

First I draw some skeleton classes in EA and adds some method etc.
Later I generate code for ALL the classes.
Now I begin coding and sometimes I add methods directly to the code. To retreive back theses "new" method I have to synchronize the model with the code. How do I sychronizes more than one class at the time ??? I haven't figured that out.

/Anders

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Code synchronization
« Reply #3 on: March 21, 2002, 03:03:11 pm »
Hi,

To re-synch multiple classes from code into the model, the only real option at the moment is to open a diagram and select all classes that you want to synch - then use the right button context menu option "Generation/Synchronise all selected objects"

This method is OK if all your classes are in one diagram - which is not always the case.

I will look at adding a menu option at the package level (in the browser tree) to synch all contained elements - this would allow a quicker import. This would be similar to the batch generation option already there.

Hope this helps,

Geoff Sparks





andlil

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Code synchronization
« Reply #4 on: March 21, 2002, 10:07:13 pm »
Thanks !

This will help a lot because I mostly have a diagram with
all the classes in the same diagram.

/Anders

MJ Barger

  • Guest
Re: Code synchronization
« Reply #5 on: March 29, 2002, 11:06:07 am »
Does Enterprise have support for Java Servlet and Java Server Pages when it comes to reverse-engineering code?

Thanks.