Generic way of adding decorations to Sirius diagrams [message #1773159] |
Fri, 22 September 2017 07:52  |
Eclipse User |
|
|
|
Hi,
Is there any way to add diagram decorations to any Sirius editor programmatically in a generic manner? I created an eclipse plugin that provides decorations through the org.eclipse.ui.decorators extension point for the Model Explorer view and I would like to do something similar in case of Sirius editors.
Thanks,
Robert
|
|
|
|
Re: Generic way of adding decorations to Sirius diagrams [message #1773180 is a reply to message #1773169] |
Fri, 22 September 2017 16:31   |
Eclipse User |
|
|
|
Hi Pierre,
I know about that mechanism, but I am not sure it helps, as my problem is with the diagram extension mechanism rather than the decorator mechanism.
I probably did not explain my issue in enough detail, so let me elaborate. I am currently working on a project that uses an EMF model (change model) to describe changes in another arbitrary EMF model (target model). I would like to be able to add a decorator to the Sirius editor of the target model to mark changed elements. In my main use case, the set of viewpoints defined for the target model is known, but there are several dozen of them. Is there any way to provide a diagram extension to all of them and avoid specifying it for each individual viewpoint, essentially duplicating it? An even better solution would be if I could specify my extension to work with any viewpoint, as this would allow the tool to work with arbitrary Sirius editor. Is that possible?
Thanks,
Robert
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05190 seconds