Home » Modeling » Papyrus » How to find a Comment links in Papyrus Model Explorer
| |
Re: How to find a Comment links in Papyrus Model Explorer [message #857774 is a reply to message #857769] |
Thu, 26 April 2012 21:22 |
Alain Lavoie Messages: 82 Registered: April 2012 |
Member |
|
|
Q1 - Is this a bug, or am I missing something ?
Maybe I am missing something, the comment links can be found
in the Comment > Properties UML > Annotated element.
In fact, a link cannot be re-added if it exist.
Therefore, trying to link a comment with a class does not work if
the class is already in the annotated element list.
Should I report a bug or is this a compromise of Papyrus to avoid
overloading the Model explorer view ?
Q2 - Is there a reason why these comments links are not shown in
the Model Explorer ?
Another side effect, is that I cannot decide to display a link between
a comment and a class wherever I want (displayed or not, depending on the diagram).
Is there a way to display or not display a link, in a diagram, when this comment
and this class are shown in more than one diagram at the same time ?
Regards.
[Updated on: Thu, 26 April 2012 21:23] Report message to a moderator
|
|
| |
Re: How to find a Comment links in Papyrus Model Explorer [message #858056 is a reply to message #857816] |
Fri, 27 April 2012 01:37 |
Arnaud Cuccuru Messages: 34 Registered: April 2010 |
Member |
|
|
Hi Alain,
I don't think this is a bug. As you noticed, a Comment is owned by only one element, but can be used to annotate several elements.
If you create a Comment in (e.g.) a class diagram, and if this diagram has been created in the context of (e.g.) a Package (i.e., in the Model explorer, you have created the diagram by right-clicking on the Package), then the Comment will be owned by this Package, just like any other element that you may create in the diagram.
As an alternative to the "advanced property view", you can probably "move" the comment to the appropriate owner via the model explorer (in the model explorer, just drag/drop the Comment to the appropriate owner).
Cheers,
Arnaud
|
|
| |
Re: How to find a Comment links in Papyrus Model Explorer [message #863820 is a reply to message #859281] |
Sun, 29 April 2012 17:30 |
Alain Lavoie Messages: 82 Registered: April 2012 |
Member |
|
|
Hi,
OK, this also makes the job.
However, dropping the comment in the diagram
does not automatically re-link (draw the line between the class and
the comment) the two "entities".
I did not find how to achieve this automatically,
Furthermore, this link is not accessible in the model explorer,
and since Papyrus does not allow me to re-draw (or re-link) the
two elements (the class and its comment) via the link icon appearing next
to a class when hovering the mouse, I end up with orphans
class and comment. I just want them to be friends again
How can I show visually that line (link) in the diagram
without having to re-select the "Link" Palette and physically
link them again (which sometimes is allowed, and sometimes, not). ?
I tried the Class contextual menu
Navigate > Restored Related Elements
without success.
Thanks for any help.
[Updated on: Mon, 30 April 2012 03:59] Report message to a moderator
|
|
| |
Re: How to find a Comment links in Papyrus Model Explorer [message #1856843 is a reply to message #1856608] |
Thu, 05 January 2023 12:53 |
|
Hello,
the "Comment Link" is only a graphical element, so it doesn't exist in the ModelExplorer. This graphical link is used to represent the elements referenced in the feature Comment#annotatedElement.
When you drop a Comment from the ModelExplorer to a Diagram, the "Comment Link" is not created automatically. Nevertheless, if the target of the "Comment Link" (so the annotated element") is already in the diagram, you can get it easily by this way: from the diagram, select the Comment, then "Right-Click->Filter-> Show/Hide Related Link". A dialog opens and you can select the link to show.
HTH,
Vincent
|
|
|
Goto Forum:
Current Time: Tue Apr 23 11:26:51 GMT 2024
Powered by FUDForum. Page generated in 0.03546 seconds
|