Sparx Systems Forum
Enterprise Architect => Suggestions and Requests => Topic started by: Emilio on August 31, 2009, 06:53:50 pm
-
During the making of a model I find myself many times needing to move and/or copy a class attribute or method to another class. Normally you just copy a class as new to start a new one if it is similar in some way but other times you already have an existent one. Currently one has to retype the whole thing :(
It would be nice to have an element (class/struct/interface) context menu item to copy (and/or move) an attribute or method to another element in the model.
-
Emilio,
There is a way to achieve this.
To copy you need to drag the attributes/operations from the project browser onto the target class on a diagram. This will create a copy of the attributes/operations (you can multiselect and then drag) in the target class.
To move attrs/ops you can drag them onto the target class in the project browser.
Geert
-
See
http://sparxsystems.com/uml_tool_guide/modeling_with_uml/copyingattributes.html
and
http://sparxsystems.com/uml_tool_guide/modeling_with_uml/movingattributesandoperatio.html