Skip to main content



      Home
Home » Modeling » Papyrus » CSS, Display custom text layout in MaskLabel
CSS, Display custom text layout in MaskLabel [message #1808775] Mon, 01 July 2019 08:23 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Eclipse on Mac update sites access problem
Next Topic:Papyrus 4.4 is available
Goto Forum:
  


Current Time: Thu Jul 10 04:34:36 EDT 2025

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

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

Back to the top