-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement message labels #251 #337
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks! I briefly tested it and it already looks very well.
A few minor changes:
- Update of operation name isn't reflected in label. To reproduce, add an operation in the signature --> Label is updated --> rename the operation --> label remains the same. Label is only updated when the name is changed or the signature object is replaced/removed itself. The same seems to be true when renaming arguments.
- Please set the font size to the size of the lifeline header label; currently it is bigger than that.
- It would be nice to avoid overflow of the label (over lifelines). I suggest to put a ... if it doesn't fit at the end of the label. Note that this will have to be automatically updated, if the lifelines are moved. Do you think that'll be easy to do?
Thanks!
* Editpart for Message labels * Adapt insert Message commands accordingly * LabelParser which conforms to UML spec * Add test cases * Adapt MessageUtil & add OperationUtil
With the addition of the MessageLabelPart the moveAsyncMessage() test cases did move the label instead of the message. -> Changed grab point for from the middle of the line to the first quarter of the line
9dbdc5c
to
f2447d3
Compare
I rebased this PR on the current master and added a fix for the label font size. In the properties-view only changes made to attributes will trigger a label refresh. Changes made to references will not trigger the refresh (only if the reference is deleted or replaced) Using the model explorer to edit the references directly will also not trigger a label refresh. |
Indeed, the I'd suggest a notification-helper object alongside the |
Conflicts: plugins/org.eclipse.papyrus.uml.diagram.sequence.runtime/src/org/eclipse/papyrus/uml/diagram/sequence/runtime/internal/providers/SequenceElementTypes.java plugins/org.eclipse.papyrus.uml.diagram.sequence.runtime/src/org/eclipse/papyrus/uml/diagram/sequence/runtime/internal/providers/SequenceParserProvider.java tests/org.eclipse.papyrus.uml.diagram.sequence.runtime.tests/META-INF/MANIFEST.MF
- extend add/remove semantic listeners to get notifications on model changes required for label updates - small NPE coming from reorient message update Change-Id: I31b346b998ca52014cd34966bda1a13a4a67b6a2 Signed-off-by: Remi Schnekenburger <rschnekenburger@eclipsesource.com>
I updated the PR with 2 commit: solve conflicts (trivial) and update the listener mechanism to watch model modifications and refresh semantic listeners |
- fix test issues: removing labels that prohibits some moves on self messages. Change-Id: Ie170814ce57b8b42a3b8026e0bd301454bbf6c4a Signed-off-by: Remi Schnekenburger <rschnekenburger@eclipsesource.com>
I updated message label edit parts and listeners to be notified on relevant model changes |
Note: This PR reuses components which have been contributed with PR #18 for issue #16
This PR provides labels for messages which are displayed as stated in UML spec 2.5.1 (17.4.4.1). In particular it contains the following contributions: