Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328800

Summary: [DataBinding] ObservableListTreeContentProvider calls TreeViewer#replace()
Product: [Eclipse Project] Platform Reporter: Thomas Schindl <tom.schindl>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: francisu, qualidafial
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: stalebug

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.