| Summary: | ClassCastException ResizableLabelLocator / Rectangle when moving label of edge | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Cedric Brun <cedric.brun> |
| Component: | Diagram | Assignee: | Project Inbox <sirius.diagram-inbox> |
| Status: | CLOSED FIXED | QA Contact: | Jessy Mallet <jessy.mallet> |
| Severity: | normal | ||
| Priority: | P3 | CC: | error-reports-inbox, jessy.mallet, julien.dupont, laurent.redor, pierre-charles.david |
| Version: | 1.0.0M6 | Keywords: | triaged |
| Target Milestone: | 3.1.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: |
https://git.eclipse.org/r/53461 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=cb3b9eef35b9eea2cd9000a0c12fcf157c9f1111 |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 451053, 477205 | ||
|
Description
Cedric Brun
I analyzed the stack. But I have no idea about what's going wrong. For information, the ResizableLabelLocator is set as layoutConstraint by the LabelEditPart, org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart.handleResizableRefreshBounds(). So this problem is probably linked to the label of the edge that you move. This could help you to find a reproduction use case. Is the label selected when you move egde? I narrowed it down a bit. The CCE actually happens when I am "moving" the center label of the edge. But it's not easy to catch, I have to : 1- select the label by clicking on it 2- move my mouse on the side of rectangle which appears when the label. There is a small spot (like 1 pixel wide) which makes my mouse cursor change into a "move handle" (a hand) 3- click and drag the shape => the error log is getting filed with exceptions. Reproduced with Sirius 1.0.0 M6 since GEF 3.7 This problem seems to come from a change in GEF: http://git.eclipse.org/c/gef/org.eclipse.gef.git/commit/org.eclipse.gef/src/org/eclipse/gef/editpolicies/ConstrainedLayoutEditPolicy.java?id=b55147c9f85937b992c214c59a2b206e9f625ebb I have not analyzed enough to say if it is a regresion in GEF or if Sirius should adapt its code to this change. *** Bug 447156 has been marked as a duplicate of this bug. *** It looks like this still bug happens in the wild and affects other projects (See Bug 448475) . Shouldn't we ping the GEF team ? *** Bug 448475 has been marked as a duplicate of this bug. *** *** Bug 449346 has been marked as a duplicate of this bug. *** *** Bug 452127 has been marked as a duplicate of this bug. *** New Gerrit change created: https://git.eclipse.org/r/53461 Gerrit change https://git.eclipse.org/r/53461 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=cb3b9eef35b9eea2cd9000a0c12fcf157c9f1111 Fixed by cb3b9eef35b9eea2cd9000a0c12fcf157c9f1111. Validated with Sirius 3.1.0.201509241504 Available in Sirius 3.1.0. |