Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 148097

Summary: Drag action on GEF logic diagram does not respect Snap to Geometry menu setting
Product: [Tools] GEF Reporter: Tom Macdougall <tmacdoug>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: minor    
Priority: P3 CC: hudsonr
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch for DragEditPartsTracker.txt none

Description Tom Macdougall CLA 2006-06-21 15:09:23 EDT
Here are the steps to reproduce the issue:

- Create a GEF logic diagram example
- Set the View menu item Grid to selected and the Snap to Geometry to unselected
- Use the LED palette tool and drop an LED on the logic diagram
- Drag the LED across the diagram

Note the drag will always attach to the grid
Comment 1 Tom Macdougall CLA 2006-06-21 15:14:00 EDT
Created attachment 45024 [details]
patch for DragEditPartsTracker.txt

Added check in DragEditPartsTracker for the snap to geometry property. I am not sure what I can assume about the getCurrentViewer call. Please let me know if further checks should be added.
Comment 2 Randy Hudson CLA 2006-06-21 15:29:51 EDT
Tools need to rely on the target editpart to determine how to snap. The viewer property is an implementation detail for how the target determines the snapto method.

This is working as designed for me.