1.1 --- a/samples/exceptions/src/org/apidesign/exceptions/trycatchredo/IOManager.java Sun Feb 01 16:03:37 2009 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,29 +0,0 @@
1.4 -package org.apidesign.exceptions.trycatchredo;
1.5 -
1.6 -import java.net.URL;
1.7 -import javax.swing.Action;
1.8 -
1.9 -/**
1.10 - *
1.11 - * @author Jaroslav Tulach <jtulach@netbeans.org>
1.12 - */
1.13 -public final class IOManager {
1.14 - static boolean old;
1.15 -
1.16 - IOManager() {
1.17 - }
1.18 -
1.19 - /** Action that can store a text to given URL.
1.20 - *
1.21 - * @param where the url to upload the text to
1.22 - * @param what the text to upload
1.23 - * @return action that can be invoked anytime to save the content
1.24 - */
1.25 - public static Action createSaveAction(URL where, CharSequence what) {
1.26 - if (old) {
1.27 - return new SaveAction(where, what);
1.28 - } else {
1.29 - return new SaveActionWithQuery(where, what);
1.30 - }
1.31 - }
1.32 -}