GMF Diagram-EMF Model Sync problem [message #199473] |
Wed, 30 July 2008 03:04 |
Eclipse User |
|
|
|
Originally posted by: s.gil.gmx.com
Hello,
Im currently having a sync problem between the GMF diagram and the EMF
Model, in my application.
The situation is as the following:
In my application, when I change a property on one of my nodes in the GMF
diagram I need to make an Elist, non modifiable.
So when i do that, the diagram keeps "seeing" the list as modifiable, while
the EMF model doesnt allow to modify the list.
I assume it is a SYNC problem, because when i close and open the GMF diagram
again, the list behaves as it should, as an unmodifiable list.
the following is the code used to turn the list as non-modifiable:
In the example the List is called: "this.iports".
this.iports = new EcoreEList.UnmodifiableEList<IPort>(this,
InTmlDevToolsV02Package.eINSTANCE.getFilter_Iports(),
newIPorts.size(), newIPorts.toArray());
eNotify(new ENotificationImpl(this, Notification.SET,
InTmlDevToolsV02Package.FILTER__FILTER_CLASS, oldFilterClass, filterClass));
eNotify(new ENotificationImpl(this, Notification.SET,
InTmlDevToolsV02Package.FILTER__IPORTS, oldIports, this.iports));
(i have tryied a lot of posible notifications, but with no effect).
I assume the problem is that the GMF diagram does NOT sees the EMF propertiy
chage (make the list non-modifiable).
Anyone has an idea what might be my problem here? any clues to solve it?
Or anyone know how to "REFRESH" the whole GMF diagram programatically?
thanks in advance.
-Santiago Gil
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02057 seconds