}
// Save synoptics
try {
for(int i = 0; i < selectedSheets.size(); i++) {
ShapesContainer sc = ((ShapesComponent) selectedSheets.get(i)).getContainer();
File sheetFile = JSynoptic.gui.getFilePanel().getFile(sc.getComponent());
String fileName;
if (sheetFile == null){
fileName = sc.getComponent().getName();
fileName = "Doc" + fileName.charAt(fileName.length() - 1) + JSynopticPanels.resources.getStringValue("defaultSaveExtension");
} else {
fileName = sheetFile.getName();
}
sheetFile = new File(temRep, fileName);