for (int i = 0; i < o.length; i++) {
channelList[i] = (Channel) o[i];
}
if (channelList.length == 1) {
ChannelConfigDlg dialog;
Window parent = UiUtilities.getBestDialogParent(mAllChannels);
dialog = new ChannelConfigDlg(parent, channelList[0]);
dialog.centerAndShow();
MainFrame.getInstance().getProgramTableScrollPane()
.updateChannelLabelForChannel(channelList[0]);
} else if (channelList.length > 1) {
MultiChannelConfigDlg dialog;
Window parent = UiUtilities.getBestDialogParent(mAllChannels);
dialog = new MultiChannelConfigDlg(parent, channelList);
dialog.centerAndShow();
}
mSubscribedChannels.repaint();
mSubscribedChannelListener.restore();
restoreForPopup();