private void showDialog(String title, Throwable throwable, int dialogType, String messageString,
			Component parent) {

		if (dialogType == OptionDialog.ERROR_MESSAGE) {
			showErrorDialogOnSwing(title, throwable, messageString, parent);
		}
		else {
			DockingWindowManager.showDialog(parent, new OkDialog(title, messageString, dialogType));
		}
	}
Error dialog used to append exceptions.

<p>While this dialog is showing all new exceptions will be added to the dialog.  When
this dialog is closed, this reference will be cleared.

<p>Note: all use of this variable <b>must be on the Swing thread</b> to avoid thread
visibility issues.
Ghidra/Framework/Docking/src/main/java/docking/DockingErrorDisplay.java