use of uk.ac.babraham.SeqMonk.DataWriters.SeqMonkDataWriter in project SeqMonk by s-andrews.
the class SeqMonkApplication method saveProject.
/**
* Saves the current project into the specified file.
*
* @param file The file into which the project will be saved
*/
public void saveProject(File file) {
SeqMonkDataWriter writer = new SeqMonkDataWriter();
writer.addProgressListener(new ProgressDialog(this, "Saving Project...", writer));
writer.addProgressListener(this);
writer.writeData(this, file);
setTitle("SeqMonk [" + file.getName() + "]");
SeqMonkPreferences.getInstance().addRecentlyOpenedFile(file.getAbsolutePath());
}
Aggregations