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

Bug 358599

Summary: getCaretLocation, getCaretPosition methods in Combo and Text return wrong results
Product: [Eclipse Project] Platform Reporter: George Cheng <y29cheng>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: curtis.windatt.public, eclipse.felipe
Version: 4.2   
Target Milestone: 3.8 M3   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description George Cheng CLA 2011-09-22 10:11:35 EDT
Build Identifier: i20110916-0200

Caret position is always at the beginning of the selected text.

Reproducible: Always

Steps to Reproduce:
1.select some text
2.getCaretPosition or getCaretLocation
3.wrong result
Comment 1 Curtis Windatt CLA 2011-09-22 11:20:24 EDT
Moving to SWT
Comment 2 Felipe Heidrich CLA 2011-09-23 10:40:25 EDT
George, don't you have the fix for that already ?
Comment 3 George Cheng CLA 2011-09-23 16:21:00 EDT
(In reply to comment #2)
> George, don't you have the fix for that already ?

However, the mac version won't give the correct caret position when there are text selected. And for now, we can only return the start of the selection as the caret position.