+ The default NetBeans Platform infrastructure knows how to
+ display dialog when an UserQuestionException
is
+ reported.
+
+ * Since version 8.29 the default implementation of this method inside + * a NetBeans Platform based application understands + * {@link UserQuestionException}. If the exception is thrown and later + * reported via this method, it is properly shown to the user as a + * dialog with approve/reject options. If approved, the infrastructure + * calls {@link UserQuestionException#confirmed()} method. + *
* * @param t the exception to notify */ diff -r 0df9cb6108b7 openide.util/src/org/openide/util/UserQuestionException.java --- a/openide.util/src/org/openide/util/UserQuestionException.java Wed Nov 07 16:27:53 2012 +0100 +++ b/openide.util/src/org/openide/util/UserQuestionException.java Wed Nov 07 17:36:29 2012 +0100 @@ -54,6 +54,11 @@ * ThegetLocalizedMessage
method should return the user question,
* which will be shown to the user in a dialog with OK, Cancel options and
* if the user chooses OK, method ex.confirmed ()
will be called.
+* +* Since version 8.29 one can just catch the exception and report it to the +* infrastructure of any NetBeans Platform based application (for example +* via {@link Exceptions#printStackTrace(java.lang.Throwable)}) and the +* question dialog will be displayed automatically. * * @author Jaroslav Tulach */