CSS, Display custom text layout in MaskLabel [message #1808775] |
Mon, 01 July 2019 08:23  |
Eclipse User |
|
|
|
Hi everyone,
I'm stuck on a CSS issue while trying to display a custom format for properties in BDD.
what I am actully doing is the following:
BlockDefinitionDiagram Property[appliedStereotypes~="MyStereotype"]{
fontColor:purple;
maskLabel: name type defaultValue;
}
obtaining something like: "myProperty : Type= value"
I wonder if there is a way to write that in the following custom way:
"myProperty : Type<value>"
I also tried to avoid using defaultValue and put a value from a stereotype instead, but nothing has been displayed.
Thank you
Dylan
|
|
|
Re: CSS, Display custom text layout in MaskLabel [message #1808776 is a reply to message #1808775] |
Mon, 01 July 2019 08:35  |
Eclipse User |
|
|
|
Hi Dylan,
The CSS don't support this kind of customization. They are equivalent to what you can do in the "Appearance" tab of the Label's properties page, i.e. you can select which parts of the label you want to see; but you can't change how each part is displayed (It still follows the standard UML Notation).
It might be possible to use the GMF org.eclipse.gmf.runtime.common.ui.services.parserProviders extension point to provide something really custom (Using the priority "High" or "Highest" to override the one provided by Papyrus), but that's a little bit more advanced and could potentially interfere with other customizations
HTH,
Camille
|
|
|
Powered by
FUDForum. Page generated in 0.08042 seconds