public void updateRoot(String[] paths) {
        this.rootComboBox.removeAllItems();

        if(paths.length <= 0) {
            this.rootComboBox.addItem("[Automatic]");
            this.rootComboBox.setEnabled(false);

        } else {
            this.rootComboBox.addItem("[Automatic]");

            String[] dirNodes = paths[0].split("\\\\|\\/");
            String rootDir = "";

            for(int i=0; i<dirNodes.length; i++) {
                node: {
                    rootDir += dirNodes[i] + File.separator;
                    boolean isRealRoot = true;
    
                    for(int j=0; j<paths.length; j++) {
                        if(paths[j].indexOf(rootDir) != 0) {
                            isRealRoot = false;
                            break node;
                        }
                    }

                    if(isRealRoot) {
                        this.rootComboBox.addItem(rootDir);
                    }
                }
            }

            if(this.rootComboBox.getItemCount() > 1) {
                this.rootComboBox.setEnabled(true);
            } else {
                this.rootComboBox.setEnabled(false);
            }
        }
        this.rootComboBox.setWide(true);
        this.rootComboBox.updateUI();
    }