private void showDirOpenDialog(){
        JFileChooser fileOpen = new JFileChooser(directoryPath.getText());
        fileOpen.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
//        FileNameExtensionFilter filter = new FileNameExtensionFilter(
//                "Algorythm workspace files .wks", "wks");
//        fileOpen.setFileFilter(filter);
        int ret = fileOpen.showOpenDialog(null);
        if (ret == JFileChooser.APPROVE_OPTION) {
            destinationDir = fileOpen.getSelectedFile();
            directoryPath.setText(destinationDir.getAbsolutePath());
//            tree = updateTree();
            splitPane.updateUI();
//            if(com.wr.Main.setListAllWords(importingFile))
//                JOptionPane.showMessageDialog(this, "Import success!", "Import file",JOptionPane.INFORMATION_MESSAGE);
//            else
//                JOptionPane.showMessageDialog(this, "Import filed!", "Import file",JOptionPane.ERROR_MESSAGE);

        }
//

    }