diff -r 1687adb2b7f0 -r fba31e9504a1 samples/exceptions/src/org/apidesign/exceptions/trycatchredo/IOManager.java --- a/samples/exceptions/src/org/apidesign/exceptions/trycatchredo/IOManager.java Sun Feb 01 13:38:08 2009 +0100 +++ b/samples/exceptions/src/org/apidesign/exceptions/trycatchredo/IOManager.java Sun Feb 01 16:03:37 2009 +0100 @@ -8,10 +8,22 @@ * @author Jaroslav Tulach */ public final class IOManager { + static boolean old; + IOManager() { } + /** Action that can store a text to given URL. + * + * @param where the url to upload the text to + * @param what the text to upload + * @return action that can be invoked anytime to save the content + */ public static Action createSaveAction(URL where, CharSequence what) { - return new SaveActionWithQuery(where, what); + if (old) { + return new SaveAction(where, what); + } else { + return new SaveActionWithQuery(where, what); + } } }