*/
public void saveAs(MainPanel panel) {
// Início JFileChooser
int returnVal = this.getSaveAsFileChooser().showSaveDialog(Principal.getInstance());
if (returnVal == JFileChooser.APPROVE_OPTION) {
FileSaver fs = new FileSaver(panel);
String filePath = getSaveAsFileChooser().getSelectedFile().getAbsolutePath();
fs.setPath(filePath.replace(".sbl", ""));
// Define o diretório pai do arquivo selecionado como último caminho usado.
properties.setProperty(PropertiesConstants.LAST_PATH, getSaveAsFileChooser().getSelectedFile().getParent());
fs.saveFile();
this.updatePanelSettings(panel, getSaveAsFileChooser().getSelectedFile());
} else {
actionCloseCancelled = true;
}
}