|Re: How can i change view of element when element attribute changed? [message #1080689 is a reply to message #1077984]
||Tue, 06 August 2013 05:07
| Niels Brouwers
Registered: July 2009
I managed to achieve that by contributing a custom EditPolicy using the EditPolicyService. The idea is that an EditPolicy provides (additional) behavior to an EditPart. Using the service you can declare multiple EditPolicies to be installed on existing EditParts.
For more information, look at the GMF help:
Eclipse -> Help -> GMF Developer Guide -> How To -> Runtime -> How To Guide For Diagram Layer Components. There is a subsection How to change the color of a shape dynamically, which probably is similar as what you would like to achieve.
Powered by FUDForum
. Page generated in 0.01807 seconds