if (currentFileFormat.equals("Jalview"))
{
- String shortName = title.replace('/', '_');
- title = title.replace('\\', '_');
+ String shortName = title;
+ if(shortName.indexOf(java.io.File.separatorChar)>-1)
+ shortName = shortName.substring(
+ shortName.lastIndexOf(java.io.File.separatorChar)+1);
+
String choice = chooser.getSelectedFile().getPath();
Jalview2XML.SaveState(this, choice, shortName);
// USE Jalview2XML to save this file
}
addTreeMenuItem(tp, title);
+ viewport.setCurrentTree(tp.getTree());
Desktop.addInternalFrame(tp, title, 600, 500);
}