| Summary: | [Tree] Wrong tree selection after collapse/expand tree node | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Michal Nikodim <michal.nikodim> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | webmaster |
| Version: | 1.5 | ||
| Target Milestone: | 2.0 M1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Michal Nikodim
Just tested with SWT Tree: - when multi selection is set on the Tree, collapsing of an item removes the selection from its children. - when single selection is set on the Tree, collapsing of an item moves the selection from the child (hidden) item to its visible parent item. (In reply to comment #1) > - when multi selection is set on the Tree, collapsing of an item removes the > selection from its children. > - when single selection is set on the Tree, collapsing of an item moves the > selection from the child (hidden) item to its visible parent item. Fixed in master with commit 3dd62ca0e851464f718f15f673d6b3ea0c7f4646. *** Bug 391396 has been marked as a duplicate of this bug. *** Could you please reopen the bug? The problem still exists in 2.1.1 and 2.1.0. See the rap demo. You can reproduce it the same way as stated in Commen #1. (In reply to comment #4) > Could you please reopen the bug? > > The problem still exists in 2.1.1 and 2.1.0. See the rap demo. You can reproduce > it the same way as stated in Commen #1. Hi Markus, for me the Examples Demo behaves exactly as described in comment#2. The TreeViewer in the Examples Demo is created with MULTI style flag and selection is removed from the non visible items. Tree#getSelection() returns empty selection as expected. Never mind, Ivan. Actually we expected that if you expand the item again the selection will still exist. But we checked with SWT and it is the same behavior. So everthing is fine. |