setPanelsData(model);
setTitle(WINDOW_TITLE + " - " + currentFile.getName());
// If simulation results are present, adds a Result Window
if (model.containsSimulationResults()) {
if (model.isParametricAnalysisEnabled()) {
this.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));
SHOW_RESULTS.setEnabled(true);
} else {
this.setResultsWindow(new ResultsWindow(model.getSimulationResults()));
SHOW_RESULTS.setEnabled(true);
}