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

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