Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to force a refresh in CanonicalConnectionEditPolicy
how to force a refresh in CanonicalConnectionEditPolicy [message #59035] Tue, 03 October 2006 19:58 Go to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

I need to force my CanonicalConnectionEditPolicy to catch up with changes
I make to the model.

Connections don't get updated properly when one of the end EditParts of
the connections doesn't exist yet.

Is there anyway I could force refresh?

thanks
vlad
Re: how to force a refresh in CanonicalConnectionEditPolicy [message #59060 is a reply to message #59035] Wed, 04 October 2006 06:38 Go to previous messageGo to next message
Eclipse UserFriend
Hello Vlad,

Are you using generated code? It contains some special work-around to update
connections only then all the necessary edit parts was created.

AFAIK, the only one way to trigger canonical update (except changing of underlying
domain model) is to find corresponding edit policy and call refresh() explicitly.

-----------------
Alex Shatalin
Re: how to force a refresh in CanonicalConnectionEditPolicy [message #59268 is a reply to message #59060] Wed, 04 October 2006 18:56 Go to previous message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

Thank you Alex. I've made it work by forcing a refresh when a source
editpart gets activated.

vlad


On Wed, 04 Oct 2006 10:38:55 +0000, Alex Shatalin wrote:

> Hello Vlad,
>
> Are you using generated code? It contains some special work-around to update
> connections only then all the necessary edit parts was created.
>
> AFAIK, the only one way to trigger canonical update (except changing of underlying
> domain model) is to find corresponding edit policy and call refresh() explicitly.
>
> -----------------
> Alex Shatalin
Previous Topic:Re: Multiple diagrams for the same EMF model
Next Topic:Can not view .ecore_diagram in editor
Goto Forum:
  


Current Time: Mon May 12 15:10:37 EDT 2025

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

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

Back to the top