Bug 176374 - SWT Text widget does not call selection listeners
Summary: SWT Text widget does not call selection listeners
Status: RESOLVED DUPLICATE of bug 4655
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-05 09:46 EST by Alex Bernstein CLA
Modified: 2007-03-05 10:51 EST (History)
1 user (show)

See Also:


Attachments
Code snippet (2.83 KB, text/plain)
2007-03-05 09:47 EST, Alex Bernstein CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Bernstein CLA 2007-03-05 09:46:14 EST
Build ID: ALL

Steps To Reproduce:
1. Create Text widget and add selection listener to it.
2. Select some range from Java code, or
3. Select some range using keyboard or mouse

Your selection listener is never called.


More information:
Comment 1 Alex Bernstein CLA 2007-03-05 09:47:10 EST
Created attachment 60263 [details]
Code snippet
Comment 2 Grant Gayed CLA 2007-03-05 10:51:59 EST
This is behaving according to spec (see Text.addSelectionListener() javadoc).  The Feature Request for the behaviour that you want is bug 4655, so marking report as a duplicate.

As an alternative you can use a StyledText instead of a Text since it will fire Selection events on selection changes.


*** This bug has been marked as a duplicate of bug 4655 ***