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
> you shouold first check if your call to updateIfPossible really invokes any
> UpdateFeature and if yes, if that update feature changes anything.
My call to updateIfPossible really works and i can see the changes after the call.
By debbuging, i found out that, before the IToolBehaviorProvider.getDecorator() is called,one method refresh() is called, so i tried the following after the call to
But it does not work.
Actually, i don't know how to solve this issue.