Skip to main content



      Home
Home » Modeling » Papyrus » How to Control Display of Custom Stereotype Attributes?
How to Control Display of Custom Stereotype Attributes? [message #1772445] Sat, 09 September 2017 21:34 Go to next message
Eclipse UserFriend
I have done the following:

Create Profile which contains a custom stereotype called Annotated Block. I've then applied that stereotype to a block in a model, and displayed the compartment that displays the Annotated Block attributes. But...I only want to see some of the attributes. Referencing the attached image, I want to display "Note=...", but not display "isEncapsulated=...". The usual trick of Right Click -> Filters -> Show/Hide Contents doesn't seem to work here. Any suggestions?

Thanks a bunch!
Re: How to Control Display of Custom Stereotype Attributes? [message #1772470 is a reply to message #1772445] Mon, 11 September 2017 03:00 Go to previous messageGo to next message
Eclipse UserFriend
Hello brad,
could you please telle me which version of Eclipse and papyrus are you using?
it seems you have the right way to display it.
Thanks
Re: How to Control Display of Custom Stereotype Attributes? [message #1772472 is a reply to message #1772470] Mon, 11 September 2017 03:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I fear that Show/Hide isn't working for stereotype compartment.
You may achieve that using custom css

Example for Requirement
Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] {
    visible:true;
    showTitle:false;
}

Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="derived"],
Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="derivedFrom"],
Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="satisfiedBy"],
Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="refinedBy"],
Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="tracedTo"],
Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="verifiedBy"],
Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="master"]{
	visible:false;
}


Regards,
Benoit
Re: How to Control Display of Custom Stereotype Attributes? [message #1772493 is a reply to message #1772472] Mon, 11 September 2017 09:59 Go to previous message
Eclipse UserFriend
Thanks guys! Sorry for not giving my version in the original post; it is:

Version: Neon (4.6.0)
Build id: 2017-01-10T18:00:02Z

I'll have a look at the CSS solution. It's about time I taught myself how to use that functionality anyow.
Previous Topic:[Oxygen][Properties View] Editing a property typed by a stereotype (EReference) in a DataType
Next Topic:Specialization - Set values for inherited properties
Goto Forum:
  


Current Time: Wed Jul 23 16:19:42 EDT 2025

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

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

Back to the top