SVG export with semantic data [message #1734434] |
Wed, 08 June 2016 07:28  |
Eclipse User |
|
|
|
Hi,
I'm using Sirius 3.1.4.
I'm trying to understand how I could export a Sirius diagram to SVG with semantic information attached to the SVG nodes.
More precisely, I want to have the name of the semantic elements as attributes of the corresponding SVG nodes:
<g name="semantic name" ...>
...
</g>
Is there a proper way to achieve that or something close to it ?
I've debugged the SVG export down to org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramEdgeEditPart.ViewEdgeFigure.paintFigure(Graphics)
in which the semantic element can be resolved. The corresponding SVG element exists but is not accessible: it's hidden in graphics.graphics.graphics2D.domGroupManager.currentGroup.
So if I manage to override ViewEdgeFigure.paintFigure somehow, I can hack with java reflection but it is far from a "proper" solution.
What would you advise ?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.41595 seconds