Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: DMT on July 16, 2003, 10:56:13 am
-
Does anyone know if there's a way to copy attributes and operations between classes? I know you can copy entire classes, but being able to copy individual pieces of a class would be a big benefit to me.
-
Create a class diagram and drop your target class onto it. Open the source class in the workspace browser. Drag the attribute/operation onto the target class. It will be copied, not moved.
It doesn't seem to be entirely natural, but it does work. Mostly. I have managed to lock up EA a couple of times.
Bruce Fountain
-
AWESOME! Thanks, Bruce. This is EXACTLY what I was looking for.
Dave
-
Another trick to copy operations:
Create an inherit relationship from the target class to the class that has the operations. Select Override Operations/Interface and check the operations you want to copy. Delete the inherit relationship when you are finished.
Mikkel