Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Where to handle Notifications: GraphicalEditPart vs CanonicalEditPolicy?
Where to handle Notifications: GraphicalEditPart vs CanonicalEditPolicy? [message #20063] Wed, 16 August 2006 06:01 Go to next message
Eclipse UserFriend
Both GraphicalEditPart and CanonicalEditPolicy implement
NotificationListener and register themselves as adapters of semantic and
notation elements. Which events should be processed in GraphicalEditPart
and which in CanonicalEditPolicy and why?
Re: Where to handle Notifications: GraphicalEditPart vs CanonicalEditPolicy? [message #20834 is a reply to message #20063] Wed, 16 August 2006 11:25 Go to previous message
Eclipse UserFriend
Yury wrote:
> Both GraphicalEditPart and CanonicalEditPolicy implement
> NotificationListener and register themselves as adapters of semantic and
> notation elements. Which events should be processed in GraphicalEditPart
> and which in CanonicalEditPolicy and why?
>
Hi;
The canonical edit policy is the component responsible for keeping the
Children view in sync with the semantic element children.
The Canonical edit policy should handle the events concerning adding or
removing a child to the semantic element it is trying to keep in sync.
While the graphical edit part should handle events that might affect
the look of the edit part's figure like; the font, the color etc; or the
Edit Part hierarchy like child addition and deletion to trigger a
refresh in the cases where the EditPart does not have a canonical edit
policy installed on it.
Previous Topic:GMF Tutorial: shortcuts between mindmaps don't seem to work...
Next Topic:GMF online tutorials missing
Goto Forum:
  


Current Time: Sun Jun 08 13:13:43 EDT 2025

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

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

Back to the top