_openButton = new JButton("Open job");
_openButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
JaxbJobReader reader = new JaxbJobReader(_configuration);
try {
SourceColumnMapping sourceColumnMapping = getSourceColumnMapping();
Map<String, String> variableOverrides = new HashMap<String, String>();
for (Entry<String, JXTextField> entry : _variableTextFields.entrySet()) {
variableOverrides.put(entry.getKey(), entry.getValue().getText());
}
AnalysisJobBuilder ajb = reader.create(new BufferedInputStream(new FileInputStream(_file)),
sourceColumnMapping, variableOverrides);
OpenAnalysisJobActionListener openAnalysisJobActionListener = _openAnalysisJobActionListenerProvider.get();
openAnalysisJobActionListener.openJob(_file, ajb);