if (source == statusChanger) {
if(statusChangerPanelCtr != null) {
removeAsListenerAndDispose(statusChangerPanelCtr);
}
statusChangerPanelCtr = new FloatingResizableDialogController(ureq, getWindowControl(), statusChangerContent,
getTranslator().translate("im.status.change"), 210, 200, statusChanger.getOffsetX()-130, statusChanger.getOffsetY()+25, null, null, false, false, true, "im_status");
listenTo(statusChangerPanelCtr);
statusPanel.setContent(statusChangerPanelCtr.getInitialComponent());
statusChanger.setDirty(false);
} else if (source == onlineOfflineCount) {
if (!clientHelper.isChatDisabled()) { //only open panel when chat is not disabled
if(rosterPanelCtr != null) {
removeAsListenerAndDispose(rosterPanelCtr);
}
rosterPanelCtr = new FloatingResizableDialogController(ureq, getWindowControl(), buddiesList,
getTranslator().translate("im.buddies"), 300, 500, onlineOfflineCount.getOffsetX()-80, onlineOfflineCount.getOffsetY()+25, null, null, true, true, true, "im_roster");
listenTo(rosterPanelCtr);
rosterPanel.setContent(rosterPanelCtr.getInitialComponent());
onlineOfflineCount.setDirty(false);
}