void setViewPaths(TreePath[] paths) {
		int size = viewList.size();
		for (int i = 0; i < size; i++) {
			removeFromView(viewList.get(0));
		}

		Arrays.sort(paths, nodeComparator);
		for (TreePath path : paths) {
			if (path != null) {
				addToView(path);
			}
		}
		fireTreeViewChanged();
	}
Replace the existing view with the given paths.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramDnDTree.java