Skip to main content



      Home
Home » Eclipse Projects » Sirius » Does org.eclipse.sirius.diagram.customBundledImageShape work?
Does org.eclipse.sirius.diagram.customBundledImageShape work? [message #1821368] Tue, 11 February 2020 23:14 Go to next message
Eclipse UserFriend
I added a custom svg image to my project according to https://www.eclipse.org/sirius/doc/6.0.x/developer/extensions-provide_custom_bundled_image_shape.html

There is no such an extension point, so I added it manually to plugin.xml file.

But it doesn't work. I downloaded a sample project from https://bugs.eclipse.org/bugs/show_bug.cgi?id=542678

And it doesn't work either. It doesn't see the custom bundled image. Please see an attached screenshot. How to fix it?
Re: Does org.eclipse.sirius.diagram.customBundledImageShape work? [message #1821370 is a reply to message #1821368] Wed, 12 February 2020 01:26 Go to previous messageGo to next message
Eclipse UserFriend
Sorry for spam. It works fine. Just restart Eclipse after plugin.xml editing.
Re: Does org.eclipse.sirius.diagram.customBundledImageShape work? [message #1821387 is a reply to message #1821370] Wed, 12 February 2020 05:00 Go to previous message
Eclipse UserFriend
Hello,

Indeed, as the custom bundled image is provided via an extension point, the plugin requires to be loaded so the VSM (odesign) can access it. I did not think to add a warning in the documentation about that at the time. I guess we could inspect the plugin of the VSM on the fly to check if there is a new extension of this time to avoid this reloading, but I have not tried.

Note that the documentation and extension point is now deprecated. This first attempt to provide custom SVG "reacting" to the style properties specified in the VSM were too limited. If I remember correctly it was expecting the SVG too be in a specific structure and did not managed multi-valued attributes . In order to keep the old way to work, a new extension point has been added and is documented here [1].

Best regards,
Steve

[1]https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom_bundled_image_shape.html
Previous Topic:"element" bug in Reconnect Edge
Next Topic:Filter variable filter
Goto Forum:
  


Current Time: Fri Jun 13 10:42:14 EDT 2025

Powered by FUDForum. Page generated in 0.07291 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top