Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » set feature of stereotype
set feature of stereotype [message #626227] Fri, 14 March 2008 11:14
Eclipse UserFriend
Originally posted by:


I need to copy the content of stereotype to new stereotype.

I have a static method which get a good result if I apply the profile.
However if the profile has already been applied, my fonction return a

My question is: what is the difference between applying a profile and a
profile that was applied on the profile?


EObject oldEObject = oldElement.getStereotypeApplication(oldStereotype);
EObject newEObject = UMLUtil.safeApplyStereotype(newElement,
for (EStructuralFeature eStructuralFeature : newEObject.eClass()
.getEAllStructuralFeatures()) {

if (!eStructuralFeature.getName()
.startsWith(Extension.METACLASS_ROLE_PREFIX)) {

if (eStructuralFeature.isChangeable())

apply profile:

Profile profile = pck.getAppliedProfile(profileQualifiedName);
if (profile == null) {
profile = getProfile(profileURI);
return profile;
Previous Topic:Adding a menu entry to the UML Editor Menu
Next Topic:Illegal Argument setting a stereotype property
Goto Forum:

Current Time: Fri Aug 19 12:28:54 GMT 2022

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

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

Back to the top