Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Does org.eclipse.sirius.diagram.customBundledImageShape work?
Does org.eclipse.sirius.diagram.customBundledImageShape work? [message #1821368] Wed, 12 February 2020 04:14 Go to next message
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 344
Registered: August 2013
Senior Member
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 06:26 Go to previous messageGo to next message
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 344
Registered: August 2013
Senior Member
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 10:00 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
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


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:"element" bug in Reconnect Edge
Next Topic:Filter variable filter
Goto Forum:
  


Current Time: Thu Apr 25 13:43:55 GMT 2024

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

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

Back to the top