Skip to main content



      Home
Home » Modeling » Papyrus » Property as a border item
Property as a border item [message #1804781] Mon, 01 April 2019 03:56 Go to next message
Eclipse UserFriend
Hello,

Is there a way to represent a property of a class as a border item in a composite structure diagram? I can't find an adequate CSS property or appearance parameter to set.

The purpose would be to represent a property in a similar way to a port in a CSD., but I can't use a port because the code generation is not equivalent.

Thanks.

Yoann.
Re: Property as a border item [message #1805136 is a reply to message #1804781] Mon, 08 April 2019 04:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi Yoann,

No; it's not possible with CSS. You'd need to rely on a Diagram Extension model that defines a new Edit Part for "Properties as Border Items". This is a relatively advanced customization use case, so I'm not sure we have appropriate documentation for this.

Papyrus-RT has at least one example of this, for its StateMachine diagram, so if you're interested in investigating this approach, you can check https://git.eclipse.org/c/papyrus-rt/org.eclipse.papyrus-rt.git/tree/plugins/umlrt/tooling/org.eclipse.papyrusrt.umlrt.tooling.diagram.statemachine/expansion

Regards,
Camille
Re: Property as a border item [message #1805137 is a reply to message #1805136] Mon, 08 April 2019 04:12 Go to previous message
Eclipse UserFriend
Hello Camille,

Thanks for the informations. I'll try the approach that you propose if it is the appropriate way to do it. Thank you for the pointer.

Best regards.

Yoann.
Previous Topic:UML class diagram & C++ Return type disappears
Next Topic:Importing UML profile in an Architecture model
Goto Forum:
  


Current Time: Sat Jul 12 21:20:50 EDT 2025

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

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

Back to the top