Change model on property change [message #895034] |
Wed, 11 July 2012 09:24  |
Eclipse User |
|
|
|
Hi,
I want to change the model if a property changes. For example I have the domain element "AnalysisFunctionPrototype" and I want to add an element to the element if one if its propertys is changed.
So far I can register if the desired property has changed via "handleNotificationEvent(..)" in my AnalysisFunctionPrototypeCanonicalEditPolicy.
But I don't know how to get the domain element, e.g. I don't know how to do
AnalysisFunctionPrototype type = get????
type.getList().add(new ...)
Btw, I don't want to edit the generated EMF code, instead I want to adjust th generated diagram code.
Thanks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05612 seconds