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: 6
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"]{
	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 12:35 Go to previous message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 913
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 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


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


Current Time: Sun Dec 15 00:23:41 GMT 2019

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

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

Back to the top