[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt] emf basic undoable command for stereotypes?

Hello,

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 newValue)


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,
Sorin.