Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Class Diagram: Hiding "Member End Name" of an association
Class Diagram: Hiding "Member End Name" of an association [message #1793681] Tue, 14 August 2018 06:50 Go to next message
Fredrik Johansson is currently offline Fredrik JohanssonFriend
Messages: 4
Registered: October 2015
Junior Member
Is it possible to hide the "Name" and the associated "+" sign of an association end point, without hiding the multiplicities? I want to hide the "+ a" and "+ b" strings in this image.

index.php/fa/33631/0/
  • Attachment: a.png
    (Size: 3.59KB, Downloaded 667 times)
Re: Class Diagram: Hiding "Member End Name" of an association [message #1793682 is a reply to message #1793681] Tue, 14 August 2018 07:11 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi Fredrik,

In a *.css File, you can add these rules:

Label[kind=SourceRole],
Label[kind=TargetRole]{
    visible: false;
}


Then apply this stylesheet on your diagram (Shortest way being to drag & drop the file on your diagram, but you probably want to apply it on your entire model or project, e.g. via the Style tab of the diagram's properties view)

HTH,
Camille


Camille Letavernier
Re: Class Diagram: Hiding "Member End Name" of an association [message #1793684 is a reply to message #1793682] Tue, 14 August 2018 07:30 Go to previous messageGo to next message
Fredrik Johansson is currently offline Fredrik JohanssonFriend
Messages: 4
Registered: October 2015
Junior Member
Works just fine. Thanks!
Re: Class Diagram: Hiding "Member End Name" of an association [message #1793685 is a reply to message #1793684] Tue, 14 August 2018 07:34 Go to previous messageGo to next message
Fredrik Johansson is currently offline Fredrik JohanssonFriend
Messages: 4
Registered: October 2015
Junior Member
A follow-up. How should I have known this, in a generic way? I've played around a bit with the CSS, but how do I know that the "kind" labels were SourceRole and TargetRole?
Re: Class Diagram: Hiding "Member End Name" of an association [message #1793687 is a reply to message #1793685] Tue, 14 August 2018 07:39 Go to previous message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi,

When you right click on a Connection, you have a Filters > Show/Hide Labels menu. This menu will give you the role name of each label. This also works for Nodes' compartments.

Cheers,
Camille


Camille Letavernier
Previous Topic:More questions and feedback about Papyrus 4!!
Next Topic:a question about sysml activity diagram
Goto Forum:
  


Current Time: Thu Apr 25 02:17:02 GMT 2024

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

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

Back to the top