void setActiveProject(Project project) {

		// clean up before setting the new project to be the active one
		if (activeProject != null) {

			// Remove the ToolChestListener from the closedProject
			ToolChest toolChest = activeProject.getLocalToolChest();
			toolChest.removeToolChestChangeListener(toolActionManager);
			toolChest.removeToolChestChangeListener(toolBar);
			toolChest.removeToolChestChangeListener(toolChestChangeListener);
			// Remove the repository listener
			RepositoryAdapter repository = activeProject.getRepository();
			if (repository != null) {
				repository.removeListener(this);
			}
		}

		// set the active project handle to the specified "new" project
		activeProject = project;

		// disable the menu entries that apply when no active project
		enableProjectMenuItems(project != null);

		// update the rest of the panels with new (or inactive) project
		toolBar.setActiveProject(project);
		projectDataPanel.setActiveProject(project);
		fileActionManager.setActiveProject(activeProject);
		projectActionManager.setActiveProject(activeProject);
		toolActionManager.setActiveProject(activeProject);
		if (project != null) {
			GenericRunInfo.setProjectsDirPath(project.getProjectLocator().getLocation());
		}

		workspacePanel.setActiveProject(project);
		// update the title bar and other panel's border titles
		setProjectName();
		updateConnectionPanel(project);

		if (activeProject != null) {

			// Add the toolMenu as a ToolChestListener on the new active project
			ToolChest toolChest = project.getLocalToolChest();
			toolChest.addToolChestChangeListener(toolActionManager);
			toolChest.addToolChestChangeListener(toolBar);
			toolChest.addToolChestChangeListener(toolChestChangeListener);
			createToolSpecificOpenActions();

			// Add project view listener
			activeProject.addProjectViewListener(this);

			// Add the repository listener
			RepositoryAdapter repository = activeProject.getRepository();
			if (repository != null) {
				repository.addListener(this);
			}
		}

//        gui.validate();
	}
Sets the handle to the activeProject, as well as updating the
active data tree to show the new active project's data
@param project the active project
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/FrontEndPlugin.java