Community
Participate
Working Groups
The "Snap Back" action as any DiagramAction extracts selected edit parts with the help of getTragetEditPart(Request) method. The LabelSnapBackEditPolicy understands the action's request but has no support for extracting target edit part for this request (the default method from GEF's GraphicalNodeEditPolicy is used instead). Hence, currently, target edit part for the "snap back" request is extracted by NonResizableLabelEditPolicy only. Therefore, resizable labels that don't have NonResizableLabelEditPolicy installed on them always have "Snap Back" action disabled, which is wrong. The fix should be: override #getTargetEditPart(Request) on LabelSnapBackEditPolicy, since this is the only edit policy that creates the actual command for this request. All support for the "snap back" request should be deprecated on NonResizableLabelEditPolicy, since it has no business there.
Committed fixes for 1.0.3 and 2.0. The 2.0 fix has support for "snap back" request removed from NonResizableLabelEditPolicy. Marking as fixed.
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug