ExtensionFileFilter filter = new ExtensionFileFilter("tcf", mLocalizer.msg("FileType", "TV-Browser Capture-Device File (*.tcf)"));
chooser.addChoosableFileFilter(filter);
if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
DeviceImportAndExport importer = new DeviceImportAndExport();
DeviceIf device = importer.importDevice(mData, this, chooser.getSelectedFile());
if (device == null) {
ErrorHandler.handle(importer.getError(), importer.getException());
} else {
mData.getDevices().add(device);
}
mDeviceList.setListData(new Vector<DeviceIf>(mData.getDevices()));