Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328800 - [DataBinding] ObservableListTreeContentProvider calls TreeViewer#replace()
Summary: [DataBinding] ObservableListTreeContentProvider calls TreeViewer#replace()
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 05:01 EDT by Thomas Schindl CLA
Modified: 2022-01-09 14:48 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 Thomas Schindl CLA 2010-10-27 05:01:59 EDT
The ObservableListContentProvider calls in its ViewerUpdater the replace method of TreeViewer but the name of the method in TreeViewer is a bit missleading and does not handle structural changes in the sub-item path.

Currently the replace() method is speced to only work for trees with the virtual bit set. There are 3 possible solutions:
a) JFace adds a method replace(final Object parentElementOrTreePath, final int 
   index,final Object element, boolean handleStructuralChange) which is speced 
   to not work none virtual situations

b) JFace decides that replace() should handle structural changes all the time 
   and is also useable in none virtual contexts

c) Eclipse DB issues add/remove for Tree-Updates
Comment 1 Thomas Schindl CLA 2010-10-27 06:04:43 EDT
There's currently only one work-around so that ObservableListTreeContentProvider works, when setting a ViewerComparator TreeViewer#replace() uses add/remove instead of simply updating the element value.
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:04:35 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.
Comment 3 Eclipse Genie CLA 2022-01-09 14:48:50 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.