Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » SVG references not working
SVG references not working [message #1778533] Fri, 15 December 2017 20:05 Go to next message
Lina 20 is currently offline Lina 20Friend
Messages: 32
Registered: March 2017
Member
Hi,

I have a node with an svg image who has a reference to another svg.
When I test my own editor it works perfectly.

index.php/fa/31608/0/

Then I export my editor like a plugin but when I am going to use the same node the svg reference seems wrong.

index.php/fa/31609/0/

I appreciate any help!

Happy holidays!

I have siriuis 5.1.0 on eclipse oxygen. Thanks

Lina
  • Attachment: cap1.JPG
    (Size: 9.74KB, Downloaded 288 times)
  • Attachment: Captura2.GIF
    (Size: 9.28KB, Downloaded 246 times)
Re: SVG references not working [message #1778579 is a reply to message #1778533] Mon, 18 December 2017 09:09 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 503
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Lina,

As this work when you use your editor but not when you export it, I suggest you to check two things:
* the build.properties of your plugin in which you should mark your referenced svg or its folder as exported
* the reference itself as once deployed the path to the file might be different (is it relative or absolute ?)

Regards,

Maxime


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: SVG references not working [message #1781024 is a reply to message #1778579] Wed, 31 January 2018 16:17 Go to previous message
Lina 20 is currently offline Lina 20Friend
Messages: 32
Registered: March 2017
Member
Hi Maxime,

Thanks for your answer.
*The images folder contains the normal images and the icons one. So Ido not think the problem is related to export the folder.

* The reference is a relative path. Should it be absolute? For example the image path shows in the odesing file is "ot.design/images/StakeholderDef.svg" and the ref the svg contains to the icon is: xlink:href="iconiconiconroleIcon.svg". The image exists in the same folder than StakeholderDef.svg and works on testing but not when exported.

The name of the image is exactly the same there are no case differences.

I already test with sorius version 6.0 but still does not work.

Thank you so much for your help!!!!
Lina

[Updated on: Wed, 31 January 2018 16:22]

Report message to a moderator

Previous Topic:How to run Java code from a Sirius diagram ?
Next Topic:Can't Use Services in My Project
Goto Forum:
  


Current Time: Mon Apr 12 04:35:36 GMT 2021

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

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

Back to the top