Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Copy Element With Applied Stereotypes
Copy Element With Applied Stereotypes [message #477412] Tue, 20 May 2008 18:27 Go to next message
Tim Myer is currently offline Tim MyerFriend
Messages: 81
Registered: July 2009
Member
I have a custom UML Editor that uses the I am using the EMF-generated
UML model from the org.eclipse.uml2.uml plug-in. As a starting point, I
used the generated UML Editor and Item providers, but have modified them
slightly. My question is this: how can I copy a UML Element along with
any Stereotype applications (and their corresponding Property values)?
I have tried overriding the ItemProvider#createCopyCommand, and I have
tried overriding the CopyAction#createCommand to put the Stereotype
application into the input selections, but neither approach is working
for me. Any thoughts would be helpful.
Thanks.
-------Tim Myer------
Re: Copy Element With Applied Stereotypes [message #477447 is a reply to message #477412] Mon, 26 May 2008 15:02 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Tim,

Note that there is an open enhancement request for this (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=204658)...

Kenn

"Tim Myer" <timezra@gmail.com> wrote in message
news:g0v56b$mr7$1@build.eclipse.org...
>I have a custom UML Editor that uses the I am using the EMF-generated UML
>model from the org.eclipse.uml2.uml plug-in. As a starting point, I used
>the generated UML Editor and Item providers, but have modified them
>slightly. My question is this: how can I copy a UML Element along with any
>Stereotype applications (and their corresponding Property values)? I have
>tried overriding the ItemProvider#createCopyCommand, and I have tried
>overriding the CopyAction#createCommand to put the Stereotype application
>into the input selections, but neither approach is working for me. Any
>thoughts would be helpful.
> Thanks.
> -------Tim Myer------
Re: Copy Element With Applied Stereotypes [message #626629 is a reply to message #477412] Mon, 26 May 2008 15:02 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Tim,

Note that there is an open enhancement request for this (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=204658)...

Kenn

"Tim Myer" <timezra@gmail.com> wrote in message
news:g0v56b$mr7$1@build.eclipse.org...
>I have a custom UML Editor that uses the I am using the EMF-generated UML
>model from the org.eclipse.uml2.uml plug-in. As a starting point, I used
>the generated UML Editor and Item providers, but have modified them
>slightly. My question is this: how can I copy a UML Element along with any
>Stereotype applications (and their corresponding Property values)? I have
>tried overriding the ItemProvider#createCopyCommand, and I have tried
>overriding the CopyAction#createCommand to put the Stereotype application
>into the input selections, but neither approach is working for me. Any
>thoughts would be helpful.
> Thanks.
> -------Tim Myer------
Previous Topic:Re: Profile DataType uml editor
Next Topic:UML Primitive types and non-primitive types
Goto Forum:
  


Current Time: Thu Apr 25 13:33:44 GMT 2024

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

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

Back to the top