Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » CSS, Display custom text layout in MaskLabel
CSS, Display custom text layout in MaskLabel [message #1808775] Mon, 01 July 2019 12:23 Go to next message
Dylan Trenti is currently offline Dylan TrentiFriend
Messages: 7
Registered: March 2019
Junior Member
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"]{
	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

Re: CSS, Display custom text layout in MaskLabel [message #1808776 is a reply to message #1808775] Mon, 01 July 2019 12:35 Go to previous message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 935
Registered: February 2011
Senior Member
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 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


Camille Letavernier
Previous Topic:Eclipse on Mac update sites access problem
Next Topic:Papyrus 4.4 is available
Goto Forum:

Current Time: Tue Jan 19 16:13:31 GMT 2021

Powered by FUDForum. Page generated in 0.02139 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top