|
Re: How DDiagram Element can hold color if coloring done Programatically . [message #1810011 is a reply to message #1809959] |
Mon, 29 July 2019 07:54 |
|
The whole point of Sirius's refresh/synchronisation (which would be invoked when the create a new DDiagram element) is to make sure the DDiagram model (and all its children) are in sync with the current state of the semantic model and the rules defined in the odesign. So it is completely normal that any "manual" change you made previously which does not matches what the mappings/styles definitions say is reverted.
If you want your customizations to be kept, you must add the name of the customized feature(s) to the style's customFeatures properties. In your case something like:
((FlatContainerStyleImpl) local_style).getCustomFeatures().add("foregroundColor")
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03801 seconds