Skip to main content



      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 11:52 Go to next message
Eclipse UserFriend
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 03:19 Go to previous messageGo to next message
Eclipse UserFriend
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 03:22 Go to previous messageGo to next message
Eclipse UserFriend
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 03:24 Go to previous messageGo to next message
Eclipse UserFriend
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 03:39 Go to previous messageGo to next message
Eclipse UserFriend
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 13:38 Go to previous messageGo to next message
Eclipse UserFriend
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 03:56 Go to previous messageGo to next message
Eclipse UserFriend
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 09:23 Go to previous message
Eclipse UserFriend
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 152 times)
Previous Topic:Papyrus 3.3
Next Topic:Constraint Language
Goto Forum:
  


Current Time: Thu Jul 03 06:42:35 EDT 2025

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

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

Back to the top