Skip to main content



      Home
Home » Eclipse Projects » GEF » SVG export resulting in exception!
SVG export resulting in exception! [message #249112] Tue, 02 June 2009 06:57 Go to next message
Eclipse UserFriend
Hi,

I have a GEF application and I would like to export the root figure as an
image. Everything was working fine until I changed some of the UIs and
decided to add gradient coloring by using org.eclipse.draw2d.Graphics
class' fillGradient(Rectangle r, boolean b) method. I was setting the
clipping path before applying gradient coloring to a Path. However, after
that the SVG export throws the exception below. I wonder why GraphicsSVG
does not support setClip method. Anyway here is the exception:

java.lang.RuntimeException: The class: class
org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.ex port.GraphicsSVG
has not implemented this new graphics function
at org.eclipse.draw2d.Graphics.subclassFunctionMission(Graphics .java:897)
at org.eclipse.draw2d.Graphics.setClip(Graphics.java:767)
at org.eclipse.draw2d.ScaledGraphics.setClip(ScaledGraphics.jav a:618)

I am using "de.unikassel.imageexport.exporters.SVGImageExporter". Can you
suggest some other SVGImageExporter plug-in or a method to fix the
problem. Thanks.
Re: SVG export resulting in exception! [message #249146 is a reply to message #249112] Wed, 03 June 2009 15:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Looks like your de.unikassel.imageexport.exporters.SVGImageExporter is
depending on the GMF SVG export.

And yes GMF does not support setClip().

You can raise a Bugzilla on GMF, perhaps with a patch for the issue even if
you are familiar with this API.

Cheers...
Anthony

"Alptug " <alptug07@gmail.com> wrote in message
news:04fb79b19fe2914fe5556bd1f4c7ca3b$1@www.eclipse.org...
> Hi,
>
> I have a GEF application and I would like to export the root figure as an
> image. Everything was working fine until I changed some of the UIs and
> decided to add gradient coloring by using org.eclipse.draw2d.Graphics
> class' fillGradient(Rectangle r, boolean b) method. I was setting the
> clipping path before applying gradient coloring to a Path. However, after
> that the SVG export throws the exception below. I wonder why GraphicsSVG
> does not support setClip method. Anyway here is the exception:
>
> java.lang.RuntimeException: The class: class
> org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.ex port.GraphicsSVG
> has not implemented this new graphics function
> at org.eclipse.draw2d.Graphics.subclassFunctionMission(Graphics .java:897)
> at org.eclipse.draw2d.Graphics.setClip(Graphics.java:767)
> at org.eclipse.draw2d.ScaledGraphics.setClip(ScaledGraphics.jav a:618)
>
> I am using "de.unikassel.imageexport.exporters.SVGImageExporter". Can you
> suggest some other SVGImageExporter plug-in or a method to fix the
> problem. Thanks.
>
>
Re: SVG export resulting in exception! [message #249168 is a reply to message #249112] Thu, 04 June 2009 01:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Which GMF version are you using? 2.2 M7 has setClip(Path) implemented for
GraphicsToGraphics2DAdaptor and hence for GraphicsSVG too. Perhaps, the
plugin you're using to export figures to SVG isn't based on latest GMF?

Cheers,
Alex
Re: SVG export resulting in exception! [message #249196 is a reply to message #249168] Thu, 04 June 2009 11:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi Alex,

Thanks a lot! I was only checking the latest releases, but ignoring the
new stable builds. I was using 2.1.3. I upgraded gmf-runtime to 2.2.0 and
also upgraded GEF-draw2d to 3.5.0. Now everything is working fine again.
The problem is fixed!

Cheers
Alptug
Re: SVG export resulting in exception! [message #523920 is a reply to message #249196] Mon, 29 March 2010 15:55 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

how could you create an instance of the GraphicsSVG? When I was using
this class I always get the following warning:
Discouraged access: The type GraphicsSVG is not accessible due to
restriction on required library D:\eclipse\plugins
\org.eclipse.gmf.runtime.draw2d.ui.render.awt_1.3.0.v2010011 3-1121.jar

If I ignore this message, my GEF editor throws the exception:
org.eclipse.ui.PartInitException: No editor descriptor for id
de.ubt.ai4.omme.ipm2.pg.gef.PlaygroundEditor

I hope one of you guys can help me ...

Thanks,
Bastian
Re: SVG export resulting in exception! [message #666235 is a reply to message #523920] Tue, 19 April 2011 10:30 Go to previous message
Eclipse UserFriend
I respond to this last message: because I have the same problem!

Have you found a solution ?
Previous Topic:[Zest] A new hierarchical layout algorithm?
Next Topic:[GraphicsSVG] Discourage access problem
Goto Forum:
  


Current Time: Wed Apr 30 04:33:37 EDT 2025

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

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

Back to the top