void setGroupView(GroupView view) {

		int count = view.getCount();
		GroupPath[] gp = new GroupPath[count];

		for (int i = 0; i < count; i++) {
			gp[i] = view.getPath(i);
		}
		tree.setGroupViewPaths(gp);
	}
Use the paths in the GroupView to set the current view.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramTreePanel.java