private void viewChanged() {
		JComponent c = (JComponent) tabbedPane.getSelectedComponent();
		for (String key : map.keySet()) {

			ViewProviderService v = map.get(key);
			if (c == v.getViewComponent()) {
				v.setHasFocus(true);
				provider.viewChanged(v.getCurrentView());
				updateLocalActions(v);
			}
			else {
				v.setHasFocus(false);
			}
		}
		if (c == null) {
			updateLocalActions(null);
		}
	}
If the panel is active, then set the current view to be active and all
others to be inactive.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ViewPanel.java