Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » Relative path on static images
icon10.gif  Relative path on static images [message #1735761] Wed, 22 June 2016 14:11 Go to next message
Benajmin Schoenholzer is currently offline Benajmin SchoenholzerFriend
Messages: 33
Registered: March 2016
Member
Hello

I would like to insert a static image with a path relative to my project. I tried to use the ${project_loc} variable, but it doesn't work.

<image filePath='${project_loc}/doc/static_images/Logo.png' maxW='true'><drop/>
</image><drop/>

Do you have a workaround or is it not possible?

Thanks
Benny


Re: Relative path on static images [message #1735766 is a reply to message #1735761] Wed, 22 June 2016 14:36 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 425
Registered: July 2009
Senior Member
Hello
it is a very fun coincidence but we just fixed a bug relative to this problem : https://bugs.eclipse.org/bugs/show_bug.cgi?id=473274

you can test it using latest nightly build or use the workaround described in the bug :

<context model='${project_loc}/mymodel.uml'/>
<config>
<param key='diagram_folder' value='${project_loc}/diagrams'/>
</config>
<gendoc>

<image filePath='[gGet('diagram_folder')/]/Basic_Services.png' maxW='true'>

Regards




Re: Relative path on static images [message #1735783 is a reply to message #1735766] Wed, 22 June 2016 15:57 Go to previous message
Benajmin Schoenholzer is currently offline Benajmin SchoenholzerFriend
Messages: 33
Registered: March 2016
Member
Hello Tristan

Thanks! It works with the nighly build!

Best regards.
Benny
Previous Topic:How to reuse queries in multiple templates?
Next Topic:Issue with dynamic references to elements
Goto Forum:
  


Current Time: Tue Sep 25 17:26:11 GMT 2018

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

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

Back to the top