Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [GraphicsSVG] Discourage access problem
[GraphicsSVG] Discourage access problem [message #666347] Wed, 20 April 2011 04:47
Christophe Becavin is currently offline Christophe BecavinFriend
Messages: 60
Registered: April 2011
Location: France
Hi everyone,

I'm new to GEF, and I try to implement SVG exporter to my software.
But I have the warning:
Discouraged access: The method getInstance(Rectangle) from the type GraphicsSVG is not accessible due to restriction on required library /Applications/eclipse/plugins/org.eclipse.gmf.runtime.draw2d .ui.render.awt_1.4.2.v20101111-1500.jar

This warning does not forbid building of my project. But as soon as I try to use it in the software, I have the execution error:

java.lang.LinkageError: loader constraint violation: when resolving method " org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.ex port.GraphicsSVG.getSVGGraphics2D()Lorg/apache/batik/svggen/ SVGGraphics2D; " the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, utils/ImageExportUtils, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, org/eclipse/gmf/runtime/draw2d/ui/render/awt/internal/svg/ex port/GraphicsSVG, have different Class objects for the type org/apache/batik/svggen/SVGGraphics2D used in the signature
at utils.ImageExportUtils.exportGEFAsSVG( 62)

So there is a problem in the settings of my org.eclipse.gmf.runtime.draw2d.ui.render.awt.jar
I tried:
- downloading it directly on the website project
- download the all gmf libraries
- download the special Eclipse modeling version (which include natively this jar)

But nothing solved the problem, I still have no access to this class!

I hope one of you guys can help me ...
Many thanks!
Previous Topic:Clipping of draw2d figures while using PrintFigureOperation
Next Topic:Hiding palette title bar
Goto Forum:

Current Time: Mon May 28 05:05:07 GMT 2018

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

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

Back to the top