- Timestamp:
- 07/17/08 16:32:21 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/OmeroEditor/src/treeModel/ContiguousChildSelectionModel.java
r5527 r5543 80 80 public void setSelectionPaths(TreePath[] pPaths) { 81 81 82 //System.out.println("ContiguousChildSelectionModel setSelectionPaths" + 83 // "length = " + pPaths.length); 82 84 83 85 if (pPaths.length > 0) { … … 184 186 System.out.println("ContiguousChildSelectionModel addSelectionPaths" + 185 187 "length = " + paths.length); 188 186 189 /* 187 190 * Check if any new paths have different parent 188 191 */ 189 192 TreePath[] currentPaths = this.getSelectionPaths(); 193 // if no selection, simple set the selection paths to the new paths 194 if ((currentPaths == null) || (currentPaths.length == 0)) { 195 setSelectionPaths(paths); 196 return; 197 } 190 198 TreePath currentParent = currentPaths[0].getParentPath(); 191 199
