Project

General

Profile

« Previous | Next » 

Revision a10203d1

Added by Katja Luther 6 months ago

ref #10428: fix problems with checkboxTreeViewer

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/AreaCheckBoxTreeComposite.java
63 63
                    // top level selection not allowed
64 64
                    item.setChecked(false);
65 65
                    return;
66
                }
67
                Object[] elementsToUpdate = null;
66
                }              
68 67
                if (item.getChecked()){
69
                    if (checkedElements != null){
70
                        Object[] tempArray = Arrays.copyOf(checkedElements, checkedElements.length +1);
71
                        tempArray[checkedElements.length] = item.getData();
72
                        //check whether nodes or terms need to be checked as well
73
                        updateAfterCheckElement(item);
74
                        
75
                    }
68
                    updateAfterCheckElement(item);                          
76 69
                }else{
77 70
                    if (checkedElements != null){
78 71
                        updateAfterUnCheckElement(item);
79 72
                    }
80
                }
81
                //updateItem(item);
73
                }                
82 74
            }
83 75
        });
84 76
        return tree;
......
222 214
                    for (TreeItem updateItem: childItemList) {
223 215
                        updateAfterCheckElement(updateItem);
224 216
                    }
225
                    //updateAfterCheckElements(childItemList);
217
                    
226 218
                }else {
227 219
                    for (TreeItem updateItem: childItemList) {
228 220
                        updateAfterUnCheckElement(updateItem);
229 221
                    }
230 222
                }
231
                //TreeItem parent = getRoot(treeItem);
232
                //updateItem(parent);
223
               
233 224
            }
234 225
        }
235 226
        else if(e.widget == btnSelectAllChildren){

Also available in: Unified diff