A simple "yes/no" message
Answered
Hi,
I'd like to ask the user a simple yes or no question with a dialog. What is the simplest way to do this?
Thanks.
Please sign in to leave a comment.
Perfect, thank you Vladimir.
To my embarrassment, I can never remember the code myself and have to search in my plugin code where I know I used it before.
Looking at the code of Messages.showYesNoDialog, it just calls MessageDialogBuilder.yesNo. It looks like it might be there just for backwards compatibility or something. I wonder if it is better to call it directly?