void importIntoCurrentTable() throws IOException, SQLException {
        if (env.getCurrentConnection() == null) {
            showMessageDialog(this, res.get("w.not-connect"));
            return;
        }
        TableModel tm = resultSetTable.getModel();
        final boolean importable;
        if (tm instanceof ResultSetTableModel) {
            ResultSetTableModel m = (ResultSetTableModel)tm;
            importable = m.isLinkable() && m.isSameConnection(env.getCurrentConnection());
        } else {
            importable = false;
        }
        if (!importable) {
            showMessageDialog(this, res.get("w.import-target-not-available"));
            return;
        }
        ResultSetTableModel m = (ResultSetTableModel)tm;
        assert currentDirectory != null;
        JFileChooser fileChooser = new JFileChooser(currentDirectory);
        fileChooser.setDialogTitle(res.get("Action.import"));
        fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
        fileChooser.showOpenDialog(this);
        final File file = fileChooser.getSelectedFile();
        if (file == null) {
            return;
        }
        setCurrentDirectory(file);
        Importer importer = Importer.getImporter(file);
        try {
            while (true) {
                Object[] row = importer.nextRow();
                if (row.length == 0) {
                    break;
                }
                m.addUnlinkedRow(row);
                m.linkRow(m.getRowCount() - 1);
            }
        } finally {
            importer.close();
        }
    }