Search in sources :

Example 1 with BlameSelectionListener

use of teamdash.hist.ui.BlameSelectionListener in project processdash by dtuma.

the class WBSJTable method setBlameData.

public void setBlameData(BlameData blame) {
    BlameModelData blameData = BlameData.getModel(blame, wbsModel.getModelType());
    if (this.blameData != blameData) {
        if (this.blameData != null)
            this.blameData.removeBlameModelDataListener(BLAME_LISTENER);
        if (this.blameSelectionListener != null) {
            this.blameSelectionListener.dispose();
            this.blameSelectionListener = null;
        }
        this.blameData = blameData;
        FILTER_ACTION.setBlameData(blameData);
        if (this.blameData != null) {
            this.blameData.addBlameModelDataListener(BLAME_LISTENER);
            this.blameSelectionListener = new BlameSelectionListener(this, blame);
        }
        repaint();
    }
}
Also used : BlameModelData(teamdash.hist.BlameModelData) BlameSelectionListener(teamdash.hist.ui.BlameSelectionListener)

Example 2 with BlameSelectionListener

use of teamdash.hist.ui.BlameSelectionListener in project processdash by dtuma.

the class DataJTable method setBlameData.

public void setBlameData(BlameData blame) {
    BlameModelData blameData = BlameData.getModel(blame, ((DataTableModel) getModel()).getWBSModel().getModelType());
    if (this.blameData != blameData) {
        if (this.blameData != null)
            this.blameData.removeBlameModelDataListener(BLAME_LISTENER);
        if (this.blameSelectionListener != null) {
            this.blameSelectionListener.dispose();
            this.blameSelectionListener = null;
        }
        this.blameData = blameData;
        if (this.blameData != null) {
            this.blameData.addBlameModelDataListener(BLAME_LISTENER);
            this.blameSelectionListener = new BlameSelectionListener(this, blame);
        }
        repaint();
    }
}
Also used : BlameModelData(teamdash.hist.BlameModelData) BlameSelectionListener(teamdash.hist.ui.BlameSelectionListener)

Aggregations

BlameModelData (teamdash.hist.BlameModelData)2 BlameSelectionListener (teamdash.hist.ui.BlameSelectionListener)2