Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 289873 - [Widgets] No Selection event for already selected item.
Summary: [Widgets] No Selection event for already selected item.
Status: CLOSED DUPLICATE of bug 279103
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact: Kevin Barnes CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 12:10 EDT by Kevin Barnes CLA
Modified: 2009-11-17 16:29 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Barnes CLA 2009-09-18 12:10:43 EDT
Run Snippet111. 
It uses the Selection event to open an editor. On Cocoa, we only send Selection events when the selection really changes, therefore it's impossible to open the editor with this snippet.
Comment 1 Stefan Thurnherr CLA 2009-10-20 07:13:27 EDT
I agree, a widget (a Tree in my case) with an already selected element but no focus should emit a selectionChanged event when gaining focus.

Environment: WinXP, Eclipse 3.5

My use case: 2 different widgets (widget1, widget2) as selection providers of a View. When both have a selection, and focus switches from widget1 to widget2 by directly right-clicking on the selected element of widget2, no selectionChanged event gets emitted -> the context menu's selection context is the now inactive element of widget1.
Comment 2 Stefan Thurnherr CLA 2009-10-20 07:33:27 EDT
This bug affects the Tree widget only (at least in my case).
Comment 3 Silenio Quarti CLA 2009-11-17 16:29:57 EST

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