Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Copy-paste Association as a side-effect when pasting a Class
Copy-paste Association as a side-effect when pasting a Class [message #626560] Wed, 14 May 2008 16:40
Tim Myer is currently offline Tim MyerFriend
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--------
Previous Topic:Multiple inheritance problem (extending UML)
Next Topic:Problem with Property Redefinition and Subsetting
Goto Forum:
  


Current Time: Fri Apr 19 01:57:41 GMT 2024

Powered by FUDForum. Page generated in 0.01490 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top