public static boolean showConfirmDialog(final String title, final String message) {
		AtomicBoolean okPressed = new AtomicBoolean();
		Display.getDefault().syncExec(() -> {
			shell.forceActive();
			okPressed.set(MessageDialog.openConfirm(shell, title, message));
		});
		return okPressed.get();
	}
Shows a confirmation dialog with a custom title and message.

@param title The title of the confirmation dialog.
@param message The message of the confirmation dialog.
@return True of ok was pressed; false if canceled was pressed.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/EclipseMessageUtils.java