This commit is contained in:
Denis Molony 2021-05-21 12:50:23 +10:00
parent 13647213c6
commit a33aedd750
1 changed files with 0 additions and 18 deletions

View File

@ -32,24 +32,6 @@ class SaveSectorsAction extends AbstractSaveAction implements SectorSelectionLis
setSelectedFile (new File ("savedSectors.bin"));
saveBuffer (event.getFormattedDisk ().getDisk ().readBlocks (event.getSectors ()));
// if (fileChooser.showSaveDialog (null) == JFileChooser.APPROVE_OPTION)
// {
// File file = fileChooser.getSelectedFile ();
// try
// {
// byte[] buffer =
// event.getFormattedDisk ().getDisk ().readBlocks (event.getSectors ());
// Files.write (file.toPath (), buffer, StandardOpenOption.CREATE_NEW);
// JOptionPane.showMessageDialog (null,
// String.format ("File %s saved", file.getName ()));
// }
// catch (IOException e)
// {
// e.printStackTrace ();
// JOptionPane.showMessageDialog (null, "File failed to save");
// }
// }
}
// ---------------------------------------------------------------------------------//