Bug 325405 - Need Combo API to get and set existing selection
Summary: Need Combo API to get and set existing selection
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 325234
  Show dependency tree
 
Reported: 2010-09-16 01:45 EDT by Dani Megert CLA
Modified: 2019-09-06 16:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.