Skip to main content



      Home
Home » Modeling » Graphiti » Best practice for updating graphiti Graphics from business object changes
Best practice for updating graphiti Graphics from business object changes [message #904559] Tue, 28 August 2012 13:22 Go to next message
Eclipse UserFriend
Is there a guideline for updating the graphics when changes occur to a
business object. In the past when our team built GEF based EP's with an
associated EMF bo, we would create an EMF Adapter for the bo in the EP and
use Adapter.notifyChanged to refresh the EP or its children. What is the
best practice for the equivalent in graphiti?
Re: Best practice for updating graphiti Graphics from business object changes [message #904809 is a reply to message #904559] Wed, 29 August 2012 03:34 Go to previous message
Eclipse UserFriend
Graphiti does this out-of-the-box for EMF models. We register a global EMF
adapter for an editor that reacts on domain object changes; it checks the
shapes on a diagram if they link to the changed domain object and in case
yes call an update feature registered for this shape.

This call might happen directly or indirectly depending on the editor update
setting (automatic update yes or no). See
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.graphiti.doc%2Fresources%2Fdocu%2Fgfw%2Fupdate-feature.htm&cp=22_1_3_2
for details on this.

HTH,
Michael
Previous Topic:Property sheet
Next Topic:Question about graphics algorithms
Goto Forum:
  


Current Time: Wed Jul 23 19:15:18 EDT 2025

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

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

Back to the top