Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » UI not updating after i change the domain model
UI not updating after i change the domain model [message #664637] Mon, 11 April 2011 09:38 Go to next message
Eclipse UserFriend
Hello,

i'm having a problem with a GMF editor. I extended the editor with an action, that changes the underlying domain model by executing commands on the command stack.

The commands change the model as desired and i can also see the editor getting dirty. However, the changes are not reflected at the UI.

Any hints what might be the problem?

Thanks in advance.
Re: UI not updating after i change the domain model [message #664658 is a reply to message #664637] Mon, 11 April 2011 10:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

The editor gets dirty as the dirty state is based on commandstack
changes. As you change the domain model without changing the notation
model accordingly, you should somehow invoke the cannonical edit policy
so the change is reflected by creating a corresponding Notation View
object. (Your way is somewhat outside the standard behaviour, typically
a create request will create both a domain and notation object).

Christophe


On 11-04-11 15:38, bkunlimited wrote:
> Hello,
>
> i'm having a problem with a GMF editor. I extended the editor with an
> action, that changes the underlying domain model by executing commands
> on the command stack.
> The commands change the model as desired and i can also see the editor
> getting dirty. However, the changes are not reflected at the UI.
>
> Any hints what might be the problem?
>
> Thanks in advance.
Re: UI not updating after i change the domain model [message #666199 is a reply to message #664637] Tue, 19 April 2011 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christophe,

thanks! Invoking the CanonicalEditPolicy did the trick.
Re: UI not updating after i change the domain model [message #688440 is a reply to message #666199] Fri, 24 June 2011 13:37 Go to previous message
Eclipse UserFriend
Hi,
I am facing similar problem with editor refrsh after doing resource.save()
How to refresh using Canonical edit policy?

Thanks,
Preethi
Previous Topic:Refresh Editor After Executing Commands
Next Topic:Changing the title of the property view in a gmf diagram
Goto Forum:
  


Current Time: Wed Jul 23 10:54:56 EDT 2025

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

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

Back to the top