Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JavaDoc images from archive
JavaDoc images from archive [message #1691576] Wed, 08 April 2015 05:34 Go to next message
Eclipse UserFriend
Hi

i try to have JavaDoc with image tags like this:
<img src="doc-files/image2.png"/>

This works fine for sources.

But when i build a .jar file, the java doc tooltip (or the JavaDoc view) in JDT is not showing the images.

I tried as well to build a .jar with only the .class files and a zip with the sources and doc-files folders. Then link to the zip with the "Source Attachement" in the project settings.
Still the same, no images, only the placeholder with the red cross.

Am I doing it wrong, or is it a bug?

thx
Frank
Re: JavaDoc images from archive [message #1691618 is a reply to message #1691576] Wed, 08 April 2015 09:50 Go to previous messageGo to next message
Eclipse UserFriend
Frank,

Where is this doc-files folder located? It ought to be in the same
folder (package) as the .java file that references them with such a
relative path. Use the Navigator view to double check that the build
is copying these folders to the bin folder (which is normally filtered
out in the Package Explorer).


On 08/04/2015 11:34 AM, Frank Benoit wrote:
> Hi
>
> i try to have JavaDoc with image tags like this:
> <img src="doc-files/image2.png"/>
>
> This works fine for sources.
>
> But when i build a .jar file, the java doc tooltip (or the JavaDoc
> view) in JDT is not showing the images.
>
> I tried as well to build a .jar with only the .class files and a zip
> with the sources and doc-files folders. Then link to the zip with the
> "Source Attachement" in the project settings.
> Still the same, no images, only the placeholder with the red cross.
>
> Am I doing it wrong, or is it a bug?
>
> thx
> Frank
>
Re: JavaDoc images from archive [message #1691928 is a reply to message #1691618] Fri, 10 April 2015 09:14 Go to previous messageGo to next message
Eclipse UserFriend
Ed,

the layout in the .jar looks exactly the same as outside:

rootpack
\doc-files\image*
\MyClass.java
\MyClass.class

Have you ever seen images in JavaDoc view for plugins or other Jars?
Do you know an example, so i can try it as a reference.

Frank



Re: JavaDoc images from archive [message #1691978 is a reply to message #1691928] Sat, 11 April 2015 07:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi

I created an example.

When i hoover over the Symbol "ExampleDoc" as a source, i get this tooltip:
index.php/fa/21510/0/

When i put all relevant into a jar, i can use it, and it can get the JavaDoc text, but not the image:
index.php/fa/21511/0/

See the attached JavaDocExample.jar

Still the question:
"Problem between keyboard and chair" or a bug?

thx
Frank
Re: JavaDoc images from archive [message #1691980 is a reply to message #1691978] Sat, 11 April 2015 07:40 Go to previous message
Eclipse UserFriend
I added this bug report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=464439
Previous Topic:Unable to install JBoss Tools (Luna) 4.2.3
Next Topic:Unable to ANT ATL transformation chain
Goto Forum:
  


Current Time: Sat Apr 19 15:00:00 EDT 2025

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

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

Back to the top