|
Re: Changing a diagram element's color without changing its model [message #1823416 is a reply to message #1823410] |
Thu, 26 March 2020 09:13 |
|
As their full name indicate, the "spec" classes are internal. They correspond to customized implementations of the corresponding EMF EClasses. If you need to modify the diagram's model, use the corresponding EMF APIs instead (e.g. org.eclipse.sirius.diagram.FlatContainerStyle).
Note that if you modify the style features of an element, the customization will be lost on the next refresh, when Sirius re-applies the styling rules defined in the .odesign. To avoid that, you need to mark the feature as customized by adding its name to the style's getCustomFeatures().
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.01840 seconds