Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Mauricio Moya (Arquesoft) on May 16, 2023, 11:42:59 pm

Title: Confused about source code options in features contextual menu
Post by: Mauricio Moya (Arquesoft) on May 16, 2023, 11:42:59 pm
I have a confusion with the different options displayed in the classes, particularly after reverse engineering by importing code from an IDE (eclipse, visual studio, etc).

When the reverse engineering process is completed, each class within my package structure in EA is "linked" to the source code file from which that class was created. To edit the code file from EA, I can right-click on the class, choose the "Features" option, and then select "View source code." However, there are two other options, whose functionality I don't understand, called "Edit behavior" and "Edit internal code"... Could you explain the purpose of these options?
Title: Re: Confused about source code options in features contextual menu
Post by: qwerty on May 17, 2023, 12:09:49 am
I guess that edit behavior will refer to the element property of the same name. It's supposed to hold "code" (aka behavior) as well. No idea about the other one.

q.
Title: Re: Confused about source code options in features contextual menu
Post by: Eve on May 17, 2023, 08:25:22 am
Operations in EA have always had a field for behavior and code (which is labelled as internal to distinguish it from the code in the file). They are used for various EA functions including simulation and model add-ins.