Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » CSS help to show opaque behavior of internal transitions
CSS help to show opaque behavior of internal transitions [message #1781047] Wed, 31 January 2018 18:38 Go to next message
Leandro Francucci is currently offline Leandro FrancucciFriend
Messages: 6
Registered: January 2018
Junior Member
Hi,

I use the following CSS rules succesfully for showing the opaque behavior (in C language) of several actions for a state machine diagram:

Transition > Label {
bodyCutLength: 128;
indicateParameters: true;
}

State > OpaqueBehavior { /* also it delete the label OpaqueBehavior */
bodyCutLength: 128;
indicateParameters: true;
}

However, it not working for internal transitions with opaque behavior (effect) as shown in the attached diagram.

index.php/fa/31964/0/

I have been searching for ways to do this in CSS but I cannot find the right selectors or parameters in the CSS documentation.
If anyone knows the right CSS terms please help me, thanks!
Re: CSS help to show opaque behavior of internal transitions [message #1783373 is a reply to message #1781047] Mon, 12 March 2018 13:07 Go to previous messageGo to next message
Yoann Farré is currently offline Yoann FarréFriend
Messages: 37
Registered: November 2017
Member
Hi,

I have not the answer but I'm also interested in this feature. Did you find the solution to display the OpaqueBehavior of an internal transition?

Yoann.
Re: CSS help to show opaque behavior of internal transitions [message #1783470 is a reply to message #1783373] Tue, 13 March 2018 13:26 Go to previous messageGo to next message
Leandro Francucci is currently offline Leandro FrancucciFriend
Messages: 6
Registered: January 2018
Junior Member
Hi Yoann,

Unfortunately not yet, but I expect for someone put some light on this issue.

Leandro.
Re: CSS help to show opaque behavior of internal transitions [message #1783579 is a reply to message #1783470] Wed, 14 March 2018 10:50 Go to previous messageGo to next message
Yoann Farré is currently offline Yoann FarréFriend
Messages: 37
Registered: November 2017
Member
Hi Leandro,

I found an option in preferences tables which can be helpful although not perfect.

Window > Preferences
Papyrus > Diagrams > PapyrusUMLStateMachineDiagram
"Shown number of lines for opaque expressions/behaviors"

Indicate 1 or more.

This option enables to display OpaqueBehavior of internal transitions.

Yoann.


Re: CSS help to show opaque behavior of internal transitions [message #1783628 is a reply to message #1783579] Wed, 14 March 2018 17:06 Go to previous message
Leandro Francucci is currently offline Leandro FrancucciFriend
Messages: 6
Registered: January 2018
Junior Member
Hi Yoann,

The property bodyCutLength is equivalent to "Shown number of lines for opaque expressions/behaviors", as can be seen in https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS#Style_properties

On this basis, I have recently added the following CSS rules and it works fine for all transitions!

Transition > Label {
bodyCutLength: 1;
indicateParameters: true;
}

Transition { /* for internal transitions */
bodyCutLength: 1;
indicateParameters: true;
}

Thank you for you attention.
Leandro.
Previous Topic:Papyrus 3.4 for the 21th May
Next Topic:Display Actor's name in Block Definition Diagram
Goto Forum:
  


Current Time: Fri May 25 23:00:49 GMT 2018

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

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

Back to the top