How to display SVG in Eclipse?

I am new to Eclipse and trying to display an SVG file in an Eclipse program. I downloaded the Batik plugin and installed it. This is my first work with plugins, so I don’t know anything. I want to display an SVG image when I click a button. Thanks.

+6
source share
2 answers

One option is to open a viewer / editor with a built-in SWT browser. Many browsers now support SVG content, so you can create an embedded SVG inside an HTML document and set the browser to display it. See http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet136.java?view=co and others at http: // www.eclipse.org/swt/snippets/

+1
source

Try this image editor plugin. http://marketplace.eclipse.org/content/docfacto-toolkit#.UujWxmTFIhg . The Beermat image editor is included in the toolbox. Hope it solves your problem.

0
source

Source: https://habr.com/ru/post/891535/


All Articles