Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Papyrus for Real Time » What is the best way to add comments to model elements?
What is the best way to add comments to model elements? [message #1776937] Thu, 23 November 2017 03:05 Go to next message
Juergen Dingel is currently offline Juergen DingelFriend
Messages: 42
Registered: January 2015
Member
Hi,

is there a way to add textual descriptions to, e.g., a composite state
or a capsule to communicate the purpose or any assumptions or
guarantees informally?

Thanks

Juergen
Re: What is the best way to add comments to model elements? [message #1777006 is a reply to message #1776937] Thu, 23 November 2017 14:53 Go to previous messageGo to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
If you mean *any* text (not just assumptions/guarantees) then you can add a UML Comment to any element. In the Model Explorer select the element, right-click -> New Child -> Comment. Note that there are two different New Child menus: New Child and New UML-RT Child. The former is for any kind of UML element.
Re: What is the best way to add comments to model elements? [message #1777036 is a reply to message #1777006] Thu, 23 November 2017 20:09 Go to previous messageGo to next message
Juergen Dingel is currently offline Juergen DingelFriend
Messages: 42
Registered: January 2015
Member
I guess text in UML Comments would not appear in the diagrams.

Is it possible to attach a text note to a model element in a diagram?

Re: What is the best way to add comments to model elements? [message #1777039 is a reply to message #1777036] Thu, 23 November 2017 20:18 Go to previous messageGo to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
There is no Comment element in the palette, but you can drag the comment from the Model Explorer onto the Canvas, then select and hover over the Comment so that the connection end-points appear, and then drag a connection end-point to the element that you want to associate with the comment.
Re: What is the best way to add comments to model elements? [message #1777055 is a reply to message #1777039] Fri, 24 November 2017 07:33 Go to previous message
Peter Cigehn is currently offline Peter CigehnFriend
Messages: 49
Registered: September 2014
Member
Hi,

Regarding visualizing comment elements in the diagram, apart from also having a tool on the palette for creating them, there are a few issues related to this. See bug 478628 and the bugs it depends on.

/Peter Cigéhn
Previous Topic:How to make template member function
Next Topic:Is there a way to to assign command line parameters to capsule attributes?
Goto Forum:
  


Current Time: Thu Apr 18 01:00:21 GMT 2024

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

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

Back to the top