Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » emf basic undoable command for stereotypes?
emf basic undoable command for stereotypes? [message #597513] Sun, 15 March 2009 11:55
Sorin Fagateanu is currently offline Sorin FagateanuFriend
Messages: 46
Registered: July 2009

I am having problems finding some answers...

For example I am taking an object A, applying a stereotype X to it and I
am setting the property alfa of stereotype X to the value b ,these being
done with the following:
1. A.applyStereotype(X);
2. A.setValue(X,afla,b);

1. EObject Element.applyStereotype(Stereotype stereotype)
2. void Element.setValue(Stereotype stereotype,String propertyName,Object

My scope is to create a command to be undoable(to restore de old value of
alfa and to unapply X).

Is it possible to apply/unapply a stereotype to an element and set the
value of a property of a stereotype throught basic emf commands or will I
need to write my own for this?

Thank you in advance,
Previous Topic:emf creation command ?
Next Topic:emf basic undoable command for stereotypes?
Goto Forum:

Current Time: Thu Jul 25 01:55:50 GMT 2024

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

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

Back to the top