Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Follow on CSS questions.
Follow on CSS questions. [message #1716296] Wed, 02 December 2015 18:04 Go to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
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 07:46 Go to previous messageGo to next message
Mickael ADAM is currently offline Mickael ADAMFriend
Messages: 31
Registered: February 2014
Member
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 07:47]

Report message to a moderator

Re: Follow on CSS questions. [message #1716710 is a reply to message #1716347] Mon, 07 December 2015 16:37 Go to previous messageGo to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
Thanks, Mickaël. That does indeed help.

(one of) My original question(s), however, still stands. Where is the documentation for this? How is a user supposed to know what elements to use for what diagram with digging through code?

Steve
Re: Follow on CSS questions. [message #1716719 is a reply to message #1716710] Mon, 07 December 2015 17:29 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi,

The CSS interpreter is mapped to the UML Metamodel, so UML 2.5.pdf (Or UML.uml) would be your best documentation

Regards,
Camille


Camille Letavernier
Re: Follow on CSS questions. [message #1716852 is a reply to message #1716719] Tue, 08 December 2015 15:13 Go to previous message
Klaas Gadeyne is currently offline Klaas GadeyneFriend
Messages: 165
Registered: July 2009
Senior Member
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
Previous Topic:can't get UML properties view to display
Next Topic:Activity Diagram bugs/questions
Goto Forum:
  


Current Time: Fri Mar 29 01:55:00 GMT 2024

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

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

Back to the top