private void openView(URL view) {
		// don't allow opening the active project as a read-only view
		if (activeProject != null && activeProject.getProjectLocator().getURL().equals(view)) {
			Msg.showError(getClass(), tool.getToolFrame(), "Error Opening as Read-Only",
				"Cannot open active project as Read-Only view!");
			return;
		}

		try {
			activeProject.addProjectView(view, true); // listener will trigger data panel display
		}
		catch (IOException e) {
			ProjectManager projectManager = tool.getProjectManager();
			projectManager.forgetViewedProject(view);
			Msg.showError(getClass(), tool.getToolFrame(), "Error Adding View",
				"Failed to view project/repository: " + e.getMessage(), e);
		}
	}
menu listener for Project | Add View...
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/ProjectActionManager.java