Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: RoyClem on December 02, 2004, 11:27:16 am
-
Greetings,
I noticed there exists a "Behavior" tab in the properties dialog for a class's operation. Double clicking on a class's operation (in a class diagram) displays the dialog.
What does the "Behavior" tab do? I can't seem to find any doc on it. And, how do I access it from the automation interface?
Thanks,
Roy
-
I finally found some doc in the Help. It's listed as "Operation Detail."
-
Hi Roy,
I just looked at the behavior tab myself.
I would have expected it to contain the code for the related method after importing (reverse engineering) a java class definition.
But seems that's not the case... even though that would seem to be the right place to me....
Olaf
-
Hi Roy and Olaf,
The original intention behind the behaviour field was to document some implementation/algorithmic notes about the operation and optionally display this info in diagrams. In the context of code gen - the behavior info is generated as comments in the operation body for inital generation only - ie. not round tripped.
On a related note, I believe EA 4.51 will introduce an "Initial Code" field in the same dialog for writing a code stub - again not round-tripped currently, but we're working on it.
Regards,
Ben