private void add(Program prog) {

		if (progService.isVisible(prog)) {
			tabPanel.addTab(prog);
			prog.removeListener(this);
			prog.addListener(this);
			updateActionEnablement();
		}
	}
Plugin to show a "tab" for each open program; the selected tab is the activated program.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/progmgr/MultiTabPlugin.java