I have been trying out GRAPHITI for some time now and exploring in graphiti some common features available in GEF/GMF. I have a requirement to save the image as 'SVG', Well I could easily export my IFigure into svg in gef and gmf, I am not finding a way in graphiti to do it.
I tried to export the IFigure as I would normally do in GEF( as below) but am hitting some exceptions.
After a little investigation I was able to find that the svg export works perfectly fine if my diagram does not contain any Texts,Labels. I am hitting a 'NotImplemented' exception from graphics exactly at line graphics.setTextAntialias(SWT.ON); in GFText.java
from our update site.
It contains the svg export functionality.
Text should be rendered correctly if you export the whole diagram.
Does it work?
"Matthias Gorning" <email@example.com> wrote in message
> If you install the graphiti plugin "org.eclipse.graphiti.export.batik" it
> is possible to save the diagram (or only selected parts) as type svg. From
> the context menu choose "Export Diagram...".
> But we faced the same problem: Text and Labels are not exported.