Bug 325405

Summary: Need Combo API to get and set existing selection
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 325234    

Description Dani Megert CLA 2010-09-16 01:45:22 EDT
R3.6.

The current get/setSelection API is not accurate as it destroys the direction of the selection. We need API that returns the exact selection and also allows to set it.

Test Case:
----------
1. type "text1text2text3" into Combo
2. make following RTL selection:
   [text1<caret><selectionEnd>text2<selectionStart>text3]
3. call getter API
4. call setter API
==> same result as in 2. i.e. RTL selection with caret on the left.
Comment 1 Markus Keller CLA 2010-09-16 06:35:03 EDT
Bug 103630 requests Combo#getCaretPosition().
Bug 106024 requests similar support for setting a reversed selection in the Text widget (setSelection(int, int) does not handle start > end).
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:04:04 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.