AnalysisJobMetadata metadata = reader.readMetadata(file);
int result = JOptionPane.showConfirmDialog(null, e.getMessage()
+ "\n\nDo you wish to open this job as a template?", "Error: " + e.getMessage(),
JOptionPane.OK_CANCEL_OPTION, JOptionPane.ERROR_MESSAGE);
if (result == JOptionPane.OK_OPTION) {
OpenAnalysisJobAsTemplateDialog dialog = new OpenAnalysisJobAsTemplateDialog(_windowContext, _configuration,
file, metadata, _openAnalysisJobActionListenerProvider);
dialog.setVisible(true);
}
}
}