Search in sources :

Example 1 with Colors

use of com.biglybt.ui.swt.mainwindow.Colors in project BiglyBT by BiglySoftware.

the class TableViewPainted method delete.

@Override
public void delete() {
    triggerLifeCycleListener(TableLifeCycleListener.EVENT_TABLELIFECYCLE_DESTROYED);
    if (tvTabsCommon != null) {
        tvTabsCommon.delete();
        tvTabsCommon = null;
    }
    TableStructureEventDispatcher.getInstance(tableID).removeListener(this);
    TableColumnManager tcManager = TableColumnManager.getInstance();
    if (tcManager != null) {
        tcManager.saveTableColumns(getDataSourceType(), tableID);
    }
    if (!Utils.isDisplayDisposed()) {
        Utils.disposeSWTObjects(new Object[] { cTable });
        cTable = null;
        if (filter != null) {
            disableFilterCheck();
        }
        removeAllTableRows();
    }
    configMan.removeParameterListener("ReOrder Delay", this);
    configMan.removeParameterListener("Graphics Update", this);
    configMan.removeParameterListener("Table.extendedErase", this);
    configMan.removeParameterListener("Table.headerHeight", this);
    Colors colorInstance = Colors.getInstance();
    if (colorInstance != null) {
        colorInstance.removeColorsChangedListener(this);
    }
    super.delete();
    MessageText.removeListener(this);
}
Also used : Colors(com.biglybt.ui.swt.mainwindow.Colors) TableColumnManager(com.biglybt.ui.common.table.impl.TableColumnManager)

Example 2 with Colors

use of com.biglybt.ui.swt.mainwindow.Colors in project BiglyBT by BiglySoftware.

the class LoggerView method delete.

private void delete() {
    Logger.removeListener(this);
    if (panel != null && !panel.isDisposed())
        panel.dispose();
    Colors instance = Colors.getInstance();
    if (instance != null) {
        instance.removeColorsChangedListener(this);
    }
}
Also used : Colors(com.biglybt.ui.swt.mainwindow.Colors)

Aggregations

Colors (com.biglybt.ui.swt.mainwindow.Colors)2 TableColumnManager (com.biglybt.ui.common.table.impl.TableColumnManager)1