// Create a new project
newProject = new MZmineProjectImpl();
newProject.setProjectFile(openFile);
// Get project ZIP stream
ZipFile zipFile = new ZipFile(openFile);
// Stage 1 - check version and load configuration
currentStage++;
loadVersion(zipFile);
loadConfiguration(zipFile);
if (isCanceled()) {
zipFile.close();
return;
}
// Stage 2 - load raw data files
currentStage++;
loadRawDataFiles(zipFile);
if (isCanceled()) {
zipFile.close();
return;
}
// Stage 3 - load peak lists
currentStage++;
loadPeakLists(zipFile);
if (isCanceled()) {
zipFile.close();
return;
}
// Stage 4 - load user parameters
currentStage++;
loadUserParameters(zipFile);
if (isCanceled()) {
zipFile.close();
return;
}
// Stage 5 - finish and close the project ZIP file
currentStage++;
zipFile.close();
// Final check for cancel
if (isCanceled())
return;