Search in sources :

Example 1 with SeqMonkDataWriter

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());
}
Also used : SeqMonkDataWriter(uk.ac.babraham.SeqMonk.DataWriters.SeqMonkDataWriter) ProgressDialog(uk.ac.babraham.SeqMonk.Dialogs.ProgressDialog.ProgressDialog)

Aggregations

SeqMonkDataWriter (uk.ac.babraham.SeqMonk.DataWriters.SeqMonkDataWriter)1 ProgressDialog (uk.ac.babraham.SeqMonk.Dialogs.ProgressDialog.ProgressDialog)1