Vector alignPanels = new Vector();
- /** DOCUMENT ME!! */
+ /**
+ * Last format used to load or save alignments in this window
+ */
String currentFileFormat = null;
-
+ /**
+ * Current filename for this alignment
+ */
String fileName = null;
currentFileFormat);
jalview.bin.Cache.setProperty("LAST_DIRECTORY", fileName);
-
- saveAlignment(fileName, currentFileFormat.substring(0,currentFileFormat.indexOf(" ")));
+ if (currentFileFormat.indexOf(" ")>-1)
+ {
+ currentFileFormat = currentFileFormat.substring(0, currentFileFormat.indexOf(" "));
+ }
+ saveAlignment(fileName, currentFileFormat);
}
}