@Override
		public void mousePressed(MouseEvent e) {
			// close the list window if the user has clicked outside of the window
			if (!(e.getSource() instanceof JList)) {
				tabPanel.closeTabList();
			}

			if (e.isPopupTrigger()) {
				return; // allow popup triggers to show actions without changing tabs
			}

			if (e.getSource() == closeLabel) {
				tabPanel.closeTab(value);
				return;
			}
			if (!selected) {
				tabPanel.selectTab(value);
			}
		}
Component for representing individual tabs within a {@link GTabPanel}.

@param <T> the type of the tab values
Ghidra/Framework/Docking/src/main/java/docking/widgets/tab/GTab.java