public void actionPerformed(final ActionEvent e)
{
final FileFilter[] fileFilters =
{new FilesystemFilter(new String[]{".xls", ".xlsx"}, // NON-NLS
Messages.getString("TableDataSourceEditor.ExcelFileDescription"), true)};
final CommonFileChooser fileChooser = FileChooserService.getInstance().getFileChooser("xls");
fileChooser.setFilters(fileFilters);
if (fileChooser.showDialog(TableDataSourceEditor.this, JFileChooser.OPEN_DIALOG) == false)
{
return;
}
final File file = fileChooser.getSelectedFile();
final ImportFromFileTask importFromFileTask =
new ImportFromFileTask(file, useFirstRowAsHeader.isSelected(), TableDataSourceEditor.this);
final Thread workerThread = new Thread(importFromFileTask);
workerThread.setName("PRD-import-table-data-task"); // NON-NLS
BackgroundCancellableProcessHelper.executeProcessWithCancelDialog (workerThread, importFromFileTask,