|Re: Text placeholder for different properties in SVG [message #1756482 is a reply to message #1756476]
||Fri, 17 March 2017 15:29
|| Remi Schnekenburger
Registered: July 2009
Location: Palaiseau, France
It is possible, but it requires many extensions and overrides, as this feature was mainly hard - coded for the name of the elements. Only one "forced" label has been initially planed for SVGs. The SVG are interpretred on the fly to set the content of the Papyrus label, used for name display.
You should have a look for example to the class SVGNodePlateFigure in o.e.p.infra.gmfdiag.common plugin. This one locates the papyrus label for the name. You should extend this class with yours if you want to add more customized labels in SVG. You may also want to have a look to the org.eclipse.papyrus.uml.diagram.common.figure.node.AutomaticCompartmentLayoutManager, which layouts the name label.
I would say, not the easiest customization
Get professional Eclipse developer support:
[Updated on: Fri, 17 March 2017 15:30]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01553 seconds