Esempio n. 1
0
 public void safeOpen(final String restoreable) {
   try {
     open(restoreable);
   } catch (final Exception ex) {
     LogUtils.warn(ex);
     final String message = TextUtils.format("remove_file_from_list_on_error", restoreable);
     UITools.showFrame();
     final Frame frame = UITools.getFrame();
     final int remove =
         JOptionPane.showConfirmDialog(frame, message, "Freeplane", JOptionPane.YES_NO_OPTION);
     if (remove == JOptionPane.YES_OPTION) {
       remove(restoreable);
     }
   }
 }