Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Cloning with Stereotypes
Cloning with Stereotypes [message #627391] Thu, 12 February 2009 16:06
Peter Mising name is currently offline Peter Mising nameFriend
Messages: 95
Registered: July 2009
Member
Hello,
i uses oAW to make some M2M Transformations and need to clone UML
Elements. They uses a Java Extension with this Code to clone Elements.

public static Object clone(Object original) {
EObject context = (EObject) original;
EcoreUtil.Copier copier = new EcoreUtil.Copier();
EObject copy = copier.copy(context);
copier.copyReferences();
return copy;
}

Unfortunately the Stereotypes get lost.
Is it possible to clone UML Elements with Stereotypes and the
corresponding Tagged Values?
Thank you
Peter
Previous Topic:How to set & get data from a stereotype's properties
Next Topic:Transformation
Goto Forum:
  


Current Time: Wed Apr 24 20:24:28 GMT 2024

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

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

Back to the top