boolean removeView(ViewProviderService vps) {
		String viewName = vps.getViewName();
		if (!map.containsKey(viewName)) {
			return false; // view not found (may have already be removed)
		}
		tabbedPane.removeChangeListener(this);
		// remove us as a listener so that the viewChanged() method is
		// not called while we are removing the view provider
		try {
			int index = tabbedPane.indexOfTab(viewName);
			if (index < 0) {
				throw new AssertException(
					"Tabbed Pane does not contain " + viewName + ", but was in the view map!");
			}
			boolean tabSelected = (index == tabbedPane.getSelectedIndex());
			tabbedPane.remove(index);
			map.remove(viewName);
			if (tabSelected) {
				viewChanged();
			}
		}
		finally {
			tabbedPane.addChangeListener(this);
		}

		return true;
	}
Add a view component to the tabbed pane and make this view active; set
other views to be inactive.

@param vp view provider
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ViewPanel.java