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

Bug 49195

Summary: DCR: New SelectionTool with support for panning
Product: [Tools] GEF Reporter: Randy Hudson <hudsonr>
Component: GEF-Legacy GEF (MVC)Assignee: Whitney Sorenson <sorensm>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ppshah
Version: 2.1.2   
Target Milestone: 3.0.0 M9   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 50020    
Bug Blocks:    

Description Randy Hudson CLA 2003-12-19 15:20:45 EST
Create a new SelectionTool subclass.  I want it to behave exactly like the 
existing selection tool, with the following additions:

- When selection tool is in its initial state, if it receives the SPACE 
keydown, it will switch to a PAN state
- While in the PAN (or PAN_IN_PROGRESS) state, a hand cursor will appear
- If I mouse down in the pan state, I will transition to a PAN_IN_PROGRESS 
state which allows scrolling the viewport by pressing and dragging the mouse.
- When leaving the state PAN_IN_PROGRESS, return to either the PAN state or 
the STATE_INITIAL based on whether the SPACE bar is still depressed.

Use the obvious name choices for constants, not exactly what I've used.
Pratik to review changes before releasing.
Comment 1 Whitney Sorenson CLA 2004-01-14 13:13:53 EST
Added PanningTool, PanningToolEntry.
LogicEditor uses PanningTool by default. Default EditDomain still uses 
SelectionTool.
Comment 2 Randy Hudson CLA 2004-01-14 13:38:01 EST
Don't forget to set the target milestone.
One more change, when pressing CTRL+SPACE, the panning mode should not be 
activated.  CTRL+SPACE is accessibility method for toggling selection of 
focused part.
Comment 3 Whitney Sorenson CLA 2004-04-27 13:11:14 EDT
Classes have been renamed PanningSelectionTool & PanningSelectionToolEntry. SWT
Bug probably not going to be fixed.