Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:22 Go to next message
drew frantz is currently offline drew frantz
Messages: 340
Registered: July 2009
Senior Member
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 07:34 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1618
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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: Sun Oct 26 02:05:20 GMT 2014

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

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