Copy-paste Association as a side-effect when pasting a Class [message #626560] |
Wed, 14 May 2008 16:40 |
Tim Myer Messages: 81 Registered: July 2009 |
Member |
|
|
Question about a custom UML Editor. Currently, I display Associations
as "children" underneath the Classes that are the source ends of the
Associations. This containment relationship is not in the model itself
(I am using the EMF-generated UML model from the org.eclipse.uml2.uml
plug-in). When I copy-and-paste a Class that is the source of an
Association, I would also like to copy the Association and to set the
source of the new Association to be the copy of the Class. I have tried
overriding ClassItemProvider#createCopyCommand,
ClassItemProvider#createCreatCopyCommand and even the PasteAction
contributed by the UMLActionBarContributor to have this side-effect for
the copy-paste operation, but without much luck. What would be the
recommended way to have this kind of side effect, and how would the
command that performs this side-effect get a reference to both the
original Class and the new Class?
-------Tim--------
|
|
|
Powered by
FUDForum. Page generated in 0.01490 seconds