decorating visual representation of business objects with icons provided from outside of the editor [message #1062451] |
Fri, 07 June 2013 15:37  |
Eclipse User |
|
|
|
Hi,
I am looking for a way to decorate pictogram elements with image decorations that come from outside the editor plug-in.
The usage would be, e.g., application of stereotypes (from UML Profile) to classes/attributes of the domain model. Now, this application of a stereotype to a bo is done through another plug-in. Stereotype holds a path attribute to an icon with which it should be visualized as an icon decoration, when it is applied to a bo. The editor is stereotype agnostic and should stay that way, but still it would be great if there is a way to somehow say to the editor to add the image decoration on the visual representation of the bo. Something in a way what can be achieved in GMF with usage of the Decoration Service.
Does Graphiti in any way support this?
or if there are any suggestions on how this could be done in any other way, would be very helpful.
Thanks,
Becir
|
|
|
|
Re: decorating visual representation of business objects with icons provided from outside of the edi [message #1062720 is a reply to message #1062691] |
Mon, 10 June 2013 09:38   |
Eclipse User |
|
|
|
Hi Andrej,
first, I want to thank you for your reply.
But, I am not sure if you understood me correctly.
I'll try to explain it differently:
What I want is to implement a plug-in that will extend Graphiti editors. Its sole purpose would be to amend the visual representation of business object by setting/removing decorations (e.g., ImageDecorator).
As I already mention, and afaik, in GMF this can be done by implementing the DecoratorService extension point. And as I was looking into Graphiti API I was unable to find anything equivalent that would help me.
As far as I know, in Graphiti, decorations must be provided in the editor code implementation (with the business logic when to show/hide them). Is this correct?
So, I was wondering if Graphiti API provides services or supports this in any other way, unknown to me, which could help me?
Becir
|
|
|
|
Powered by
FUDForum. Page generated in 0.07232 seconds