13271328132913301331133213331334133513361337
// Monitor the path's parent monitorBranch(new Path(path, path.getLength() - 1)); // Update the selection this.selectedPaths.add(new ImmutablePath(path)); } // Notify listeners treeViewSelectionListeners.selectedPathsChanged(this, previousSelectedPaths); }
14421443144414451446144714481449145014511452
if (index < 0) { // Monitor the path's parent monitorBranch(new Path(path, path.getLength() - 1)); // Update the selection selectedPaths.add(new ImmutablePath(path)); // Notify listeners treeViewSelectionListeners.selectedPathAdded(this, path); }
17881789179017911792179317941795179617971798
if (checked) { // Monitor the path's parent monitorBranch(new Path(path, path.getLength() - 1)); // Update the checked paths checkedPaths.add(new ImmutablePath(path)); } else { // Update the checked paths checkedPaths.remove(index, 1); }
19011902190319041905190619071908190919101911
if (expanded && index < 0) { // Monitor the branch monitorBranch(path); // Update the expanded paths expandedPaths.add(new ImmutablePath(path)); // Notify listeners treeViewBranchListeners.branchExpanded(this, path); } else if (!expanded && index >= 0) { // Update the expanded paths
879880881882883884885886887888889
break; } Integer[] elements = affectedPath.toArray(); elements[depth]++; paths.update(i, new ImmutablePath(elements)); } } finally { // Restore the comparator paths.setComparator(PATH_COMPARATOR); }
944945946947948949950951
break; } Integer[] elements = affectedPath.toArray(); elements[depth] -= count; paths.update(i, new ImmutablePath(elements)); } }
10201021102210231024102510261027102810291030
11271128112911301131113211331134113511361137
14651466146714681469147014711472147314741475
15361537153815391540154115421543154415451546