Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Programatically hide <<stereotype>> definition on diagram
Programatically hide <<stereotype>> definition on diagram [message #1731972] Wed, 11 May 2016 11:13 Go to next message
Rajiv Murali is currently offline Rajiv MuraliFriend
Messages: 5
Registered: May 2014
Junior Member
Hello,

I have a stereotype applied to a UML element and I would like to
programatically hide the <<stereotype>> definition that appears on the UML
diagram.

I'm able to do this manually by selecting the UML element and going to
Properties->Appearance->Stereotype Display-> Stereotype Name and
disabling the checkbox under the Visible column.

Any hint on how to do this via code would be great. (ViewServices?)

Many thanks,
Rajiv

Re: Programatically hide <<stereotype>> definition on diagram [message #1731973 is a reply to message #1731972] Wed, 11 May 2016 11:27 Go to previous message
Benoit Maggi is currently offline Benoit MaggiFriend
Messages: 129
Registered: March 2013
Location: Bordeaux, France
Senior Member
Hi,

You should probably try to use a custom css instead of java code

Check here for more information
https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS
https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS/StereotypeDisplay

Regards,
Benoit
Previous Topic:Modelling system behavior with Papyrus
Next Topic:[Moka] Can I use an Opaque Action on an Activity?
Goto Forum:
  


Current Time: Thu Apr 25 00:34:17 GMT 2024

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

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

Back to the top