SVG Custom Figure [message #108954] |
Mon, 05 March 2007 11:41  |
Eclipse User |
|
|
|
Originally posted by: sven.kaffille.wiai.uni-bamberg.de
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I have a problem with the custom figure (for the empty box) in the
Taipan-Example, which I checked out from CVS.
I have the latest Milestone-Release of GMF (M5uh).
The Taipan-Editor works in a Eclipse-Application I run the workbench,
but instead of the empty box image (box.svg) a rectangle with a red
cross is displayed.
I get no error/exception message, but in the runtime workspace's log I
get the following Exception:
!ENTRY org.eclipse.gmf.runtime.draw2d.ui.render 4 4 2007-03-05 17:25:15.984
!MESSAGE org.eclipse.swt.SWTException: Unsupported or unrecognized format
!STACK 0
org.eclipse.swt.SWTException: Unsupported or unrecognized format
at org.eclipse.swt.SWT.error(SWT.java:3478)
at org.eclipse.swt.SWT.error(SWT.java:3401)
at org.eclipse.swt.SWT.error(SWT.java:3372)
at org.eclipse.swt.internal.image.FileFormat.load(FileFormat.ja va:82)
at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:1 27)
at
org.eclipse.gmf.runtime.draw2d.ui.render.internal.image.Imag eRenderedImage.renderImage(ImageRenderedImage.java:65)
at
org.eclipse.gmf.runtime.draw2d.ui.render.internal.AbstractRe nderedImage.getSWTImage(AbstractRenderedImage.java:130)
at
org.eclipse.gmf.runtime.draw2d.ui.render.internal.RenderHelp er$1.run(RenderHelper.java:103)
at java.lang.Thread.run(Unknown Source)
Did I miss any step?
Has anybody an idea what went wrong?
Kind regards
sven
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
iD8DBQFF7EgvJkyiyyNQFhIRAr04AKDVkTvYLrqSYQTRc3xOAbW4jFWc3QCg knzJ
JEdoTQIHflGspPepaRov7n0=
=TsHa
-----END PGP SIGNATURE-----
|
|
|
|
|
|
|
Re: SVG Custom Figure [message #117741 is a reply to message #114916] |
Sat, 07 April 2007 17:47  |
Eclipse User |
|
|
|
Originally posted by: volt.vega.eti.pg.gda.pl
Hi,
I managed to use SVG in GMF (M5uh).
I started with BPMN tutorial
http://wiki.eclipse.org/index.php/GMF_Tutorial_BPMN#Custom_F igures
I downloaded the project and checked how its done there.
After fixing plug-in dependencies on my build path (took me a while) I was
happy...
....only for a short period:
I could draw shapes loaded from svg, but reopening the diagram would issue
some batik errors and thread access errors in eclipse (only some of svg
shapes where rendered).
Konrad
> Hi Sven!
> Did you already solve that?
> Because it seems like I got the same problem.
> I don't know if the batik plugin is really causing that.
> It seems something goes wrong in the RenderHelper class of
> org.eclipse.gmf.runtime.draw2d.ui.render plugin.
> org.eclips.swt.internal.image.FileFormat is used to check the format of
> the InputStream. And since it doesn't understand SVG Images, we get the
> error.
>
> Thanks a lot
> Philipp
>
>
>
> Sven Kaffille wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>
>> Hi Dmitry,
>
>> I cannot find any disabled plugins.
>> The log says nothing but the error I described in my first post.
>
>> Thank you, anyway.
>
>> regards
>
>> sven
>
>> Dmitry Stadnik schrieb:
>>> My guess is that something went wrong with Apache Batik plugin; do you
>>> see any errors/warnings in error log? Disabled plugins?
>>>
>>> Sven Kaffille wrote:
>>> Hello,
>>>
>>> I have a problem with the custom figure (for the empty box) in the
>>> Taipan-Example, which I checked out from CVS.
>>>
>>> I have the latest Milestone-Release of GMF (M5uh).
>>> The Taipan-Editor works in a Eclipse-Application I run the workbench,
>>> but instead of the empty box image (box.svg) a rectangle with a red
>>> cross is displayed.
>>> I get no error/exception message, but in the runtime workspace's log I
>>> get the following Exception:
>>>
>>>
>>> !ENTRY org.eclipse.gmf.runtime.draw2d.ui.render 4 4 2007-03-05
>>> 17:25:15.984
>>> !MESSAGE org.eclipse.swt.SWTException: Unsupported or unrecognized
>>> format
>>> !STACK 0
>>> org.eclipse.swt.SWTException: Unsupported or unrecognized format
>>> at org.eclipse.swt.SWT.error(SWT.java:3478)
>>> at org.eclipse.swt.SWT.error(SWT.java:3401)
>>> at org.eclipse.swt.SWT.error(SWT.java:3372)
>>> at
>>> org.eclipse.swt.internal.image.FileFormat.load(FileFormat.ja va:82)
>>> at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:1 27)
>>> at
>>>
> org.eclipse.gmf.runtime.draw2d.ui.render.internal.image.Imag eRenderedImage.renderImage(ImageRenderedImage.java:65)
>>>
>>> at
>>>
> org.eclipse.gmf.runtime.draw2d.ui.render.internal.AbstractRe nderedImage.getSWTImage(AbstractRenderedImage.java:130)
>>>
>>> at
>>>
> org.eclipse.gmf.runtime.draw2d.ui.render.internal.RenderHelp er$1.run(RenderHelper.java:103)
>>>
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>> Did I miss any step?
>>> Has anybody an idea what went wrong?
>>>
>>> Kind regards
>>>
>>> sven
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.5 (MingW32)
>
>> iD8DBQFF7bM7JkyiyyNQFhIRAp6nAJ9jAIDw5azu3BVA6sJmZIvkbdTE8ACg 3zgM
>> tVAQpYjxOs39Z8vdICKPre4=
>> =xxvU
>> -----END PGP SIGNATURE-----
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04780 seconds