Search in sources :

Example 1 with ReducedChainDlg

use of alma.acsplugins.alarmsystem.gui.reduced.ReducedChainDlg in project ACS by ACS-Community.

the class AlarmTable method showReductionChain.

/**
	 * Show the dialog with all the nodes reduced by the passed alarm
	 * 
	 * @param alarm The alarm whose children must be shown in a dialog
	 */
private void showReductionChain(AlarmTableEntry alarm) {
    if (alarm == null) {
        throw new IllegalArgumentException("The alarm can't be null");
    }
    AlarmCategoryClient client = model.getCategoryClient();
    if (reducedDlg == null) {
        reducedDlg = new ReducedChainDlg(client, alarm, panel, undocModel);
    } else {
        reducedDlg.setRootAlarm(alarm);
        EDTExecutor.instance().execute(new Runnable() {

            public void run() {
                reducedDlg.setVisible(true);
            }
        });
    }
}
Also used : AlarmCategoryClient(alma.alarmsystem.clients.AlarmCategoryClient) ReducedChainDlg(alma.acsplugins.alarmsystem.gui.reduced.ReducedChainDlg)

Aggregations

ReducedChainDlg (alma.acsplugins.alarmsystem.gui.reduced.ReducedChainDlg)1 AlarmCategoryClient (alma.alarmsystem.clients.AlarmCategoryClient)1