Home » Modeling » GMF (Graphical Modeling Framework) » SVG images are not rendered in GMF diagrams when I export my RCP product
SVG images are not rendered in GMF diagrams when I export my RCP product [message #167505] |
Wed, 09 January 2008 11:18  |
Eclipse User |
|
|
|
Hello,
I have a trouble using SVG images in a GMF RCP generated editor. (I use GMF
2.0.1). My SVG images are well rendering in developement environnement
(launching by using the link in the plugin.xml file, for exemple).
But, when I try to run the launcher generated by the "export product
wizard", some red boxes appears instead of these images (or in the same way
by the "launch application" link in the .product file)
I have no exception logged, but I tried to debug the product (using the
debug application link in the .product file), and the problem is located in
the "isSVG" method of the SVGImageType, when we try to create a Document
using xerces.
None the less the org.apache.batik plugin is in my configuration product and
all seems to be alright in this configuration (I tried to add ALL plugins
too).
I see this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=180675 but I
think I have a fixed version and the trouble only appears in the product
configuration.
Any help ? It's quite urgent (for a delivery).
Fabrice Dubach
|
|
| |
Re: SVG images are not rendered in GMF diagrams when I export my RCP product [message #167556 is a reply to message #167505] |
Thu, 10 January 2008 08:45   |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Fabrice,
Did you remember to include your SVG files (or the folder containing them)
in your build.properties?
I know that, for example, the build.properties file of the
org.eclipse.gmf.examples.taipan plug-in is missing the images/ folder from
build.properties, which is why in your deployed instance you didn't see the
empty box. I wouldn't expect the ship image to have appeared, either.
Otherwise, perhaps you are having this problem:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214410
which I am currently investigating with the help of the Equinox team.
HTH,
Christian
Fabrice Dubach wrote:
> Hello,
>
> I have a trouble using SVG images in a GMF RCP generated editor. (I use
> GMF 2.0.1). My SVG images are well rendering in developement environnement
> (launching by using the link in the plugin.xml file, for exemple).
>
> But, when I try to run the launcher generated by the "export product
> wizard", some red boxes appears instead of these images (or in the same
> way by the "launch application" link in the .product file)
>
> I have no exception logged, but I tried to debug the product (using the
> debug application link in the .product file), and the problem is located
> in the "isSVG" method of the SVGImageType, when we try to create a
> Document using xerces.
>
> None the less the org.apache.batik plugin is in my configuration product
> and all seems to be alright in this configuration (I tried to add ALL
> plugins too).
>
> I see this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=180675 but I
> think I have a fixed version and the trouble only appears in the product
> configuration.
>
>
> Any help ? It's quite urgent (for a delivery).
>
> Fabrice Dubach
|
|
| |
Re: SVG images are not rendered in GMF diagrams when I export my RCP product [message #167618 is a reply to message #167594] |
Thu, 10 January 2008 11:26   |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Fabrice,
Yes, this is the crux of the class loading problem as reported in that bug:
the imports of the provided packages. The consequence of this problem
ClassNotFoundExceptions on the Transcoder interface.
However, removing these dubious imports exposes further problems that I am
still trying to investigate.
Note, however, that this bug only is manifest when multiple versions of the
Batik bundles are installed. If you only have one
org.apache.batik.transcoder bundle, then you would not have the problem
reported in 214410.
Cheers,
Christian
Fabrice Dubach wrote:
> Christian,
>
> I do included my images ressources folders in my build. (But it seems that
> it is only necessary when exporting my product, but not when using the
> "links" in the test section of the product file page.)
>
> I'm not sure I understood the bug that you suggested. (Sorry, but I don't
> have a complet understanding of the OSGi technology).
>
> Following you comments about this bug, I saw that my
> org.apache.batik.transcoder (v200706111724) is depending on packages which
> it itself exports : org.apache.batik.transcoder,
> org.apache.batik.transcoder.image.resources,
> org.apache.batik.transcoder.keys, and org.apache.batik.transcoder.wmf.
> Wich it's quite curious !
>
> I don't know whether this could explain my problem on the product
> configuration. How could I be sure ?
>
> Thanks,
> Fabrice Dubach
|
|
| |
Goto Forum:
Current Time: Mon Jun 02 14:24:49 EDT 2025
Powered by FUDForum. Page generated in 0.04162 seconds
|