Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Property as a border item
Property as a border item [message #1804781] Mon, 01 April 2019 07:56 Go to next message
Yoann Farré is currently offline Yoann FarréFriend
Messages: 235
Registered: November 2017
Senior Member
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 08:01 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
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


Camille Letavernier
Re: Property as a border item [message #1805137 is a reply to message #1805136] Mon, 08 April 2019 08:12 Go to previous message
Yoann Farré is currently offline Yoann FarréFriend
Messages: 235
Registered: November 2017
Senior Member
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: Fri Apr 19 03:22:55 GMT 2024

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

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

Back to the top