712713714715716717718719720721722
break; } Integer[] elements = affectedPath.toArray(); elements[depth]++; paths.update(i, new ImmutablePath(elements)); } } finally { // Restore the comparator paths.setComparator(PATH_COMPARATOR); }
780781782783784785786787788789
break; } Integer[] elements = affectedPath.toArray(); elements[depth] -= count; paths.update(i, new ImmutablePath(elements)); } return (n - start); }
11641165116611671168116911701171117211731174
// 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);
12831284128512861287128812891290129112921293
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); treeViewSelectionListeners.selectedPathsChanged(this, null); }
16311632163316341635163616371638163916401641
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); }
17441745174617471748174917501751175217531754
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
11611162116311641165116611671168116911701171
12801281128212831284128512861287128812891290