Follow on CSS questions. [message #1716296] |
Wed, 02 December 2015 13:04  |
Eclipse User |
|
|
|
Quote:Quote:
OK, Thanks. That worked for the InitialNode and the ForkNode but not for the FinalNode.
Try with:
Code: [Select all] [Show/ hide]
ActivityFinalNode > Label {
visible: false;
}
FinalNode is the abstract superclass to both FlowFinalNode and ActivityFinalNode, and the CSS Engine currently doesn't support abstract classes (Or superclasses, to be accurate)
Regards,
Camille
So now I'm trying to do the same thing with a StateMachine diagram but I can't get it to work. I have tried
StateMachineDiagram InitialNode > Label { visible: false; }
and
StateDiagram InitialNode > Label { visible: false; }
and I even tried changing
ActivityDiagram InitialNode > Label { visible: false }
to just
InitialNode > Label { visible: false; }
which still works on the Activity diagram but not on the StateMachine diagram.
Also the
StateFinalNode > Label { visible: false; }
which worked on the Activity diagram does not work on the StateMachine diagram.
I noticed bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=386574 but making the StateMachine diagram the active diagram and manually refreshing had no effect.
This leads me to several questions:
Is there any documentation that would tell me what the correct name for supported elements are? eg StateMachineDiagram vs. StateDiagram.
An extension of this question is how would I know that Label is the thing I want to change. The InitalNode element has no property called Label as far as I can see. What was being displayed was the contents of the property called Name so where does CSS get Label from?
Is there something wrong with CSS on StateMachineDiagrams in general?
There are several different place a CSS can be attached; to the project, to the model or to the diagram. Since the 'C' in CSS stands for cascading, am I correct in assuming that the lower level attachments take precedence over the higher ones?
Thanks,
Steve
|
|
|
Re: Follow on CSS questions. [message #1716347 is a reply to message #1716296] |
Thu, 03 December 2015 02:46   |
Eclipse User |
|
|
|
Hi,
Sementic element of State Machin are different from Activity:
here the different label that you can set:
StateMachineDiagram Pseudostate[kind="initial"] > Label,
StateMachineDiagram Pseudostate[kind="junction"] > Label,
StateMachineDiagram Pseudostate[kind="shallowHistory"] > Label,
StateMachineDiagram Pseudostate[kind="terminate"] > Label,
StateMachineDiagram Pseudostate[kind="deepHistory"] > Label,
StateMachineDiagram Pseudostate[kind="choice"] > Label,
StateMachineDiagram FinalState> Label,
StateMachineDiagram Pseudostate[kind="exitPoint"] > Label,
StateMachineDiagram Pseudostate[kind="entryPoint"] > Label,
StateMachineDiagram Pseudostate[kind="join"] > Label,
StateMachineDiagram Pseudostate[kind="fork"] > Label
{
visible:false;
}
HTH,
Mickaël
[Updated on: Thu, 03 December 2015 02:47] by Moderator
|
|
|
|
|
Re: Follow on CSS questions. [message #1716852 is a reply to message #1716719] |
Tue, 08 December 2015 10:13  |
Eclipse User |
|
|
|
Hi,
Just my 2 cents: My experience is that looking at the css files that come with papyrus is at least an order of magnitude faster than trying to use the spec...
Looking at the spec and the css documentation only leads to frustration on my side...
YMMV...
Klaas
|
|
|
Powered by
FUDForum. Page generated in 0.29304 seconds