Bug 139837 - [Viewers] TreeView::getTree().selectAll() does not generate SelectionChanged event
Summary: [Viewers] TreeView::getTree().selectAll() does not generate SelectionChanged ...
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: api, helpwanted
Depends on:
Blocks:
 
Reported: 2006-05-02 16:52 EDT by Alex Bernstein CLA
Modified: 2019-09-02 15:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Bernstein CLA 2006-05-02 16:52:07 EDT
I need to develop support for selection the entire contents of a tree control (managed by TreeViewer) from context menu and from main Edit menu. 
There seems to be no way to programmatically select Tree contents so that all registered listeners are notified of the selection chnage event.
The getTree().selectAll()  does not generate any events.
Comment 1 Boris Bokowski CLA 2006-05-02 17:01:01 EDT
Can you use TreeViewer.setSelection()?
Comment 2 Alex Bernstein CLA 2006-05-03 09:27:34 EDT
I could, but set selection to what?
Comment 3 Boris Bokowski CLA 2006-05-03 10:56:08 EDT
As a workaround, you can call getTree().selectAll() and then setSelection(getSelection()).
Comment 4 Boris Bokowski CLA 2007-04-27 21:08:31 EDT
This requires new API, e.g. TreeViewer.selectAll().  Cannot add API for 3.3.
Comment 5 Boris Bokowski CLA 2009-11-26 09:54:56 EST
Hitesh is now responsible for watching bugs in the [Viewers] component area.
Comment 6 Eclipse Genie CLA 2019-02-13 02:24:45 EST
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.

--
The automated Eclipse Genie.
Comment 7 Lars Vogel CLA 2019-09-02 14:58:53 EDT
This bug has been marked as stalebug a while ago without any further interaction.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard flag.
Comment 8 Lars Vogel CLA 2019-09-02 15:04:53 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.