public void updateModel(Path path) { ProgressDialog d = new JProgressDialog("Updating", "Updating widgets for old run", 3); PredictionModel m = PredictionModel.deserialize(path); d.setProgress(1); if (m != null) { // Set this here, so we already have an instance of our own // model, so if we open another, we know this won't be "destoryed" m_model = m; ExtensionPoints.setCurrentPredictionModel(m); } d.close(); if (m == null) { Dialogs.showErrorDialog( "Error Opening Saved File", "The file you chose is corrupt or made by a newer version of bmod"); } }