Refresh editor when root model element change [message #99942] |
Thu, 01 February 2007 05:00 |
Eclipse User |
|
|
|
Originally posted by: legloahec.jobs.gmail.com
Hi everyone,
I'm new to GMF and have some troubles refreshing the editor when I perform
changes on my model programmatically. Say, in my model I have a Map with
an EList attribute, rootElement, that contains some components (the Map is
the Diagram element, and it's components are displayed in the editor).
I want to manually change the content of that EList. for instance, the
editor displays a list of components, and when I double click on one of
them, only that clicked component must remain displayed. I've successfully
installed the OpenEditPolicy which handle the double click and created a
SetValueCommand in the OpenEditPolicy#getOpenCommand().
At this point, all works fine, my model, the Map's EList, is correctly
changed when double clicked, but the main issue is that the editor does
not refresh the changes I've done. When I put a breakpoint in the matching
MapItemProvider#notifyChanged(), it never pass through !
I wonder why doing a manual change on my model doesn't fire any
notifyChanged.
What did I miss ?
Thanks a lot,
Vincent.
|
|
|
Powered by
FUDForum. Page generated in 5.08929 seconds