19202122232425
super(); } public PathTraverser(final T t, final Traversal.SideEffects sideEffects) { super(t, sideEffects); this.path = new ImmutablePath(Collections.emptySet(), t); }
24252627282930
this.path = new ImmutablePath(Collections.emptySet(), t); } public PathTraverser(final String label, final T t, final Traversal.SideEffects sideEffects) { super(t, sideEffects); this.path = new ImmutablePath(label, t); }
865866867868869870871872873874875
break; } Integer[] elements = affectedPath.toArray(); elements[depth]++; paths.update(i, new ImmutablePath(elements)); } } finally { // Restore the comparator paths.setComparator(PATH_COMPARATOR); }
930931932933934935936937
break; } Integer[] elements = affectedPath.toArray(); elements[depth] -= count; paths.update(i, new ImmutablePath(elements)); } }
13071308130913101311131213131314131513161317
// 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); }
14221423142414251426142714281429143014311432
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); }
17681769177017711772177317741775177617771778
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); }
18811882188318841885188618871888188918901891
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
11671168116911701171117211731174117511761177
// 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);
12791280128112821283128412851286128712881289
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); }