Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » CSS help to hide multiplicity, visibility and type of attributes(CSS)
CSS help to hide multiplicity, visibility and type of attributes [message #1748160] Sat, 19 November 2016 16:52 Go to next message
Ri Fr is currently offline Ri FrFriend
Messages: 134
Registered: July 2015
Senior Member
Hello

I want to show a class diagram with just class name, attribute name, operation name (semantic level class diagram). So I need to hide visibility, type, multiplicity, arguments etc.

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 very much!
Re: CSS help to hide multiplicity, visibility and type of attributes [message #1748201 is a reply to message #1748160] Mon, 21 November 2016 08:19 Go to previous messageGo to next message
Francois Le Fevre is currently offline Francois Le FevreFriend
Messages: 56
Registered: October 2014
Location: Paris Saclay, France
Member
Hello
have you look at the Papyrus For Information Modeling [1]
they have developed a papyrus customization with a specific CSS.

CSS doc is here [2]

Francois

[1] https://wiki.eclipse.org/Papyrus_for_Information_Modeling
[2]: https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS
Re: CSS help to hide multiplicity, visibility and type of attributes [message #1748202 is a reply to message #1748201] Mon, 21 November 2016 08:22 Go to previous messageGo to next message
Francois Le Fevre is currently offline Francois Le FevreFriend
Messages: 56
Registered: October 2014
Location: Paris Saclay, France
Member
Here an example for multiplicity [3]

/* hide compartments by default */
AssociationClass > Compartment,
Class > Compartment,
DataType > Compartment {
visible: false;
}

/* show attribute compartment without title */
AssociationClass > Compartment[kind="attributes"],
Class > Compartment[kind="attributes"],
DataType > Compartment[kind="attributes"] {
visible: true;
showTitle: false;
}

Property {
maskLabel: name type multiplicity;
}

[3]: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus-informationmodeling.git/tree/plugins/org.eclipse.papyrus.information.modeling.core/resource/style/im_style.css
Re: CSS help to hide multiplicity, visibility and type of attributes [message #1748203 is a reply to message #1748160] Mon, 21 November 2016 08:24 Go to previous messageGo to next message
Benoit Maggi is currently offline Benoit MaggiFriend
Messages: 129
Registered: March 2013
Location: Bordeaux, France
Senior Member
Hi,

Using this css:

Class > Compartment {
	visible: false;
}

Class > Compartment[kind="attributes"]{
    visible: true;
    showTitle: false;
}

Class > Compartment[kind="operations"]{
    visible: true;
    showTitle: false;
}
Operation {
	maskLabel: name;
}

Property {
	maskLabel: name;
}



will diplay the attached image

Regards,
Benoit
Re: CSS help to hide multiplicity, visibility and type of attributes [message #1748204 is a reply to message #1748203] Mon, 21 November 2016 08:39 Go to previous messageGo to next message
Ri Fr is currently offline Ri FrFriend
Messages: 134
Registered: July 2015
Senior Member
THANK YOU SO MUCH to all!

Operation {maskLabel: name;}
Property {maskLabel: name;}

YYEEEEEaaaaaahhhh... Cool
Re: CSS help to hide multiplicity, visibility and type of attributes [message #1748510 is a reply to message #1748204] Wed, 23 November 2016 18:38 Go to previous messageGo to next message
Axel Reichwein is currently offline Axel ReichweinFriend
Messages: 5
Registered: February 2015
Junior Member
Any possibility to change the visibility of the part type in an IBD during Papyrus runtime?
Re: CSS help to hide multiplicity, visibility and type of attributes [message #1748609 is a reply to message #1748510] Fri, 25 November 2016 08:56 Go to previous messageGo to next message
Klaas Gadeyne is currently offline Klaas GadeyneFriend
Messages: 165
Registered: July 2009
Senior Member
Hi Axel,

Axel Reichwein wrote on Wed, 23 November 2016 13:38
Any possibility to change the visibility of the part type in an IBD during Papyrus runtime?


Not sure if I understand your question correctly, but are you looking for s.t. like

Class[appliedStereotypes~="Block"] Property {
	maskLabel: name type multiplicity;
}


If you now change the css file, and omit the type, it will not longer be shown on your IBD


Re: CSS help to hide multiplicity, visibility and type of attributes [message #1784477 is a reply to message #1748160] Wed, 28 March 2018 13:23 Go to previous message
Alberto Debiasi is currently offline Alberto DebiasiFriend
Messages: 84
Registered: March 2018
Member
Hello everybody,

About this post, I was wandering if it is possible to hide the label <<part>>, shown in the subBlocks of the Internal Block Diagram.

See the screenshot in attached.

many thanks.
  • Attachment: Capture.PNG
    (Size: 11.34KB, Downloaded 124 times)
Previous Topic:Papyrus 3.3
Next Topic:Constraint Language
Goto Forum:
  


Current Time: Sat Apr 20 00:10:35 GMT 2024

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

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

Back to the top