Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Refresh editor when root model element change
Refresh editor when root model element change [message #99942] Thu, 01 February 2007 05:00
Eclipse UserFriend
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.
Previous Topic:zoom in , zoom out , zoom fit on the palette
Next Topic:Adding children automatically when a node is created
Goto Forum:
  


Current Time: Thu Jul 10 03:40:41 EDT 2025

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

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

Back to the top