tableTreeLabelProvider.displayColors(PreferenceLoader.loadBoolean("displayTableColors")); tableTreeContentProvider.setUpdateDelay(PreferenceLoader.loadInteger("updateDelay"));
    public void setPreferences() {        table.setBackground(PreferenceLoader.loadColour("downloadsBackgroundColor"));        table.setFont(PreferenceLoader.loadFont("downloadsFontData"));        table.setLinesVisible(PreferenceLoader.loadBoolean("displayGridLines"));        tableTreeLabelProvider.displayColors(PreferenceLoader.loadBoolean("displayTableColors"));        tableTreeContentProvider.setUpdateDelay(PreferenceLoader.loadInteger("updateDelay"));        if (PreferenceLoader.loadBoolean("tableCellEditors")) {            tableTreeViewer.setCellEditors(cellEditors);            tableTreeViewer.setCellModifier(this);        } else {            tableTreeViewer.setCellEditors(null);            tableTreeViewer.setCellModifier(null);        }        if (advancedMode) {            boolean b = PreferenceLoader.loadBoolean("displayChunkGraphs");            if (columnIDs.indexOf(CHUNK_COLUMN) > 0) {                tableTreeViewer.setChunksColumn(columnIDs.indexOf(CHUNK_COLUMN));            }            if ((b == false) && tableTreeViewer.getEditors()) {                tableTreeViewer.closeAllTTE();                if (columnIDs.indexOf(CHUNK_COLUMN) > 0) {                    tableTreeViewer.setEditors(b);                }            } else if ((b == true) && !tableTreeViewer.getEditors()) {                if (columnIDs.indexOf(CHUNK_COLUMN) > 0) {                    tableTreeViewer.setEditors(true);                    tableTreeViewer.openAllTTE();                }            }        }        if (tableTreeViewer.getSorter() != null) {            ((DownloadTableTreeSorter) tableTreeViewer.getSorter()).setMaintainSortOrder(PreferenceLoader.loadBoolean("maintainSortOrder"));        }    }