void setProgramTreeView(String treeName, ProgramDnDTree tree) {
		if (tree != null) {
			DefaultTreeModel treeModel = (DefaultTreeModel) tree.getModel();
			root = (ProgramNode) treeModel.getRoot();

			// TODO should not need this
			viewList = tree.getViewList();
		}
	}
Class to manage actions and popup menus for the program tree.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramTreeActionManager.java