Bug 121298

Summary: [API] Add ability to fill tracker rectangle
Product: [Eclipse Project] Platform Reporter: Chris Gross <schtoo>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r, niraj.modi, schnuddelbuddel, steve_northover
Version: 3.2Keywords: api, triaged
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Chris Gross CLA 2005-12-16 19:14:48 EST
We need the ability to have a tracker that displays a full filled rectangle of stippled area rather than just the rectangle's outline.
Comment 1 Eric Moffatt CLA 2006-10-10 14:31:05 EDT
I have already requested that SWT support this generically...see bug 155680...

The 3.2 codebase has an example of how to do this. The new trim dragging code overrides the Tracker's default behaviour by placing the track rect at (10000,0) and managing the feed back itself (see org.eclipse.ui.internal.TrimDropTarget for the code itself).
Comment 2 Steve Northover CLA 2006-10-10 15:07:26 EDT
Does this (hack) actually work on all platforms?
Comment 3 Eric Moffatt CLA 2006-10-12 16:04:41 EDT
Chris, FYI...see bug 160498. This fix should eliminate the snapRectangle hack. This means that you can simply create the tracker and not set up a 'snap' rectangle, then provide your own feedback using the tracker's events...
Comment 4 Chris Gross CLA 2006-10-13 11:22:11 EDT
Eric, what are you using to show your feedback?  Just a region-ed window?  Do you have some method to draw your own XOR rect?  I need those rectangles, just filled.  I'm unaware of how to do that XOR in base SWT.
Comment 5 Grant Gayed CLA 2009-09-25 17:01:07 EDT
Moving report to triage, see http://www.eclipse.org/swt/triage.php
for more info about swt bug handling.