How MyInputValidator works

In the GWT plugin project there is code to prompt the user for a value. Can someone explain what causes the message box to close?
Here is the code used to create the message box.

MyInputValidator validator = new MyInputValidator(project, directory);
Messages.showInputDialog(project, getDialogPrompt(), getDialogTitle(), Messages.getQuestionIcon(), "", validator);

Please sign in to leave a comment.