From 79d3a4a47cbc1fcf17c77c6fc12ff826a3077bac Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Wed, 6 Apr 2016 13:50:00 -0400 Subject: Minor bugfixes/changes, as well as beginnings of CLI systems --- .../src/main/java/bjc/utils/gui/SimpleFileChooser.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/gui/SimpleFileChooser.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleFileChooser.java b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleFileChooser.java index f39ff7c..b4c6d73 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleFileChooser.java +++ b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleFileChooser.java @@ -31,7 +31,8 @@ public class SimpleFileChooser { maybeDoOpenFile(parent, files); success = true; - } catch (FileNotChosenException e) { + } catch (@SuppressWarnings("unused") FileNotChosenException fncx) { + // We don't care about specifics SimpleDialogs.showError(parent, "I/O Error", "Please pick a file to open"); } @@ -55,7 +56,8 @@ public class SimpleFileChooser { maybeDoSaveFile(parent, files); return files.getSelectedFile(); - } catch (FileNotChosenException e) { + } catch (@SuppressWarnings("unused") FileNotChosenException fncex) { + // We don't care about specifics SimpleDialogs.showError(parent, "I/O Error", "Please pick a file to save to"); } @@ -187,7 +189,8 @@ public class SimpleFileChooser { try { maybeDoOpenFile(parent, files); - } catch (FileNotChosenException e) { + } catch (@SuppressWarnings("unused") FileNotChosenException fncex) { + // We don't care about specifics } return files.getSelectedFile(); @@ -212,7 +215,8 @@ public class SimpleFileChooser { try { maybeDoSaveFile(parent, files); - } catch (FileNotChosenException e) { + } catch (@SuppressWarnings("unused") FileNotChosenException fncex) { + // We don't care about specifics } return files.getSelectedFile(); -- cgit v1.2.3