|Graphiti framework and decorators [message #932806]
||Thu, 04 October 2012 08:57
| Junior Lekane Nimpa
Registered: September 2012
I use currently image decorators to decorate the visualization of pictogramElement.
It works fine. But I have a small problem. I use property sheet to modify some properties of business objects. Depending on the property's values, i want to display a specific icon. In the documentation i found the following:
The list of decorators that shall be applied to a PictogramElement is queried from the IToolBehaviorProvider.getDecorators(PictogramElement) method when a shape is drawn or updated on the diagram by the Graphiti framework.
So,after that i changed a property's value through the property sheet i call the following method:
But the right icon is not displayed. I have first to move the shape in the editor, before the framework remark the change and display the right icon.
i ask me therefore, if it is possible to notify this part of the framework, that is responsible for displaying icons, in the update method so that i don't have to move the shape in the editor.
Does someone has an idea , how i could solve this problem
Many Thanks in advance
Powered by FUDForum
. Page generated in 0.01685 seconds