Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: DMT on July 16, 2003, 10:56:13 am

Title: Copy Attributes and Operations?
Post 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.
Title: Re: Copy Attributes and Operations?
Post by: brucef on July 16, 2003, 06:57:41 pm
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
Title: Re: Copy Attributes and Operations?
Post by: DMT on July 17, 2003, 04:50:58 am
AWESOME!  Thanks, Bruce.  This is EXACTLY what I was looking for.

Dave
Title: Re: Copy Attributes and Operations?
Post by: mbc on July 18, 2003, 04:11:38 am
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