Bug 198738 - [Viewers] CommonViewer fires a post selection change event when expanding an element in the tree
Summary: [Viewers] CommonViewer fires a post selection change event when expanding an ...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-02 16:40 EDT by Chris McGee CLA
Modified: 2019-09-06 15:31 EDT (History)
1 user (show)

See Also:


Attachments
A plugin that demonstrates the problem (13.24 KB, application/x-zip-compressed)
2007-08-09 16:27 EDT, Chris McGee CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris McGee CLA 2007-08-02 16:40:08 EDT
I construct a CommonViewer with the "SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER" flags and no initial selection. After the viewer comes up, I expand one of the root elements and I get a post selection event when I didn't click on any of the tree items. The selection event and the tree have some random selection that I did not click on.

After some debugging it appears that the OpenStrategy has an event listener that is responding to a selection event and firing a post selection event (around line 418).
Comment 1 Boris Bokowski CLA 2007-08-08 08:32:13 EDT
Do you have a reproducible case (snippet, example plug-in)?
Comment 2 Chris McGee CLA 2007-08-09 16:27:42 EDT
Created attachment 75795 [details]
A plugin that demonstrates the problem

Make sure that there is at least one project in the workspace.

With the provided plugin open the "Sample View." Notice that nothing is initially selected. Now expand any of the root-level elements in the tree. Notice that although no selection was made, there is a random root-level element that is now selected.

This problem is being noticed on Windows XP SP2 with eclipse 3.3.
Comment 3 Boris Bokowski CLA 2009-11-26 09:49:35 EST
Hitesh is now responsible for watching bugs in the [Viewers] component area.
Comment 4 Eclipse Webmaster CLA 2019-09-06 15:31:12 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.