private void addRowToChoiceWindow(TreePath selPath){
        String name = selPath.getPathComponent(selPath.getPathCount()-1).toString();
        AlgorythmFile currentAlgorithm = null;
        for(int i = 0; i<Main.getFileBase().getLength(); i++){
            if (Main.getFileBase().getFile(i).getAlgorythmName().equals(name)){
                currentAlgorithm = Main.getFileBase().getFile(i);
            }
        }
        if(currentAlgorithm != null){
            modelMainTable.addRow(new Object[]{currentAlgorithm.getAlgorythmType(),
                    currentAlgorithm.getAlgorythmName(),currentAlgorithm.getAlgorythmFile().getName(),5,0});
        }
    }