Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Which CSS command to hide Compartments in Use Cases?(CSS)
Which CSS command to hide Compartments in Use Cases? [message #1706771] Mon, 31 August 2015 01:40 Go to next message
Ri Fr is currently offline Ri FrFriend
Messages: 134
Registered: July 2015
Senior Member
Hello

I need to show Use Cases as ovals without the Compartments (horizontal lines across the oval). Does anyone know what is the correct command for this? I cannot find it anywhere in documentation. I have tried:
UseCase > Compartment [*]{visible:false;}
UseCase > Compartment [kind="points"]{visible:false;}

and a few others

Thanks!!
Re: Which CSS command to hide Compartments in Use Cases? [message #1706785 is a reply to message #1706771] Mon, 31 August 2015 07:23 Go to previous messageGo to next message
Mickael ADAM is currently offline Mickael ADAMFriend
Messages: 31
Registered: February 2014
Member
hi,
Normally
UseCase > Compartment [kind="points"]{visible:false;} should works. But it seems that the kind "points" is not recognized.

As a workaround you can try:

UseCase>*{visible:false;}

HTH.

Mickaël
Re: Which CSS command to hide Compartments in Use Cases? [message #1706789 is a reply to message #1706785] Mon, 31 August 2015 07:39 Go to previous message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi,

It looks like a common mistake for anyone new to the CSS syntax. The following rules are *not* equivalent:

UseCase > Compartment [kind="points"]{visible:false;}


UseCase > Compartment[kind="points"]{visible:false;}


White spaces in CSS mean "descendant of..." (at any level). So if you want to select the "points" compartment, you need to use the second rule (Compartment[kind=points], without white spaces)

Quote:
But it seems that the kind "points" is not recognized.


The issue is not the "kind" attribute; it is the DOM Element type that is not valid. The "points" compartment matches the "Label" rule (instead of "Compartment"). So there's indeed a bug here

As a workaround, you can use the following rule (that should still work after this bug is fixed):

UseCase > [kind=points] {
	visible: false;
}


HTH,
Camille


Camille Letavernier
Previous Topic:Diagrams, stored inside or outside blocks, activities etc?
Next Topic:Problems while generating new papyrus diagram since 1.0
Goto Forum:
  


Current Time: Fri Apr 26 14:47:04 GMT 2024

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

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

Back to the top