Changes the chat room error messages to show in popup notifications

instead of dialogs.
cusax-fix
hristoterezov 12 years ago
parent f320157c7b
commit c42404dc83

@ -412,14 +412,12 @@ public void localUserAdHocPresenceChanged(
else if (evt.getEventType().equals(
LocalUserAdHocChatRoomPresenceChangeEvent.LOCAL_USER_JOIN_FAILED))
{
new ErrorDialog(
GuiActivator.getUIService().getMainFrame(),
GuiActivator.getResources().getI18NString("service.gui.ERROR"),
GuiActivator.getAlertUIService().showAlertPopup(
GuiActivator.getResources().getI18NString("service.gui.ERROR"),
GuiActivator.getResources().getI18NString(
"service.gui.FAILED_TO_JOIN_CHAT_ROOM",
new String[]{sourceAdHocChatRoom.getName()})
+ evt.getReason())
.showDialog();
"service.gui.FAILED_TO_JOIN_CHAT_ROOM",
new String[]{sourceAdHocChatRoom.getName()})
+ evt.getReason());
}
else if (LocalUserAdHocChatRoomPresenceChangeEvent
.LOCAL_USER_LEFT.equals(eventType)
@ -510,13 +508,12 @@ public void run()
else if (LocalUserChatRoomPresenceChangeEvent
.LOCAL_USER_JOIN_FAILED.equals(eventType))
{
new ErrorDialog(
GuiActivator.getUIService().getMainFrame(),
GuiActivator.getResources().getI18NString("service.gui.ERROR"),
GuiActivator.getAlertUIService().showAlertPopup(
GuiActivator.getResources().getI18NString("service.gui.ERROR"),
GuiActivator.getResources().getI18NString(
"service.gui.FAILED_TO_JOIN_CHAT_ROOM",
new String[]{sourceChatRoom.getName()}) + evt.getReason())
.showDialog();
new String[]{sourceChatRoom.getName()})
+ evt.getReason());
}
else if (LocalUserChatRoomPresenceChangeEvent
.LOCAL_USER_LEFT.equals(eventType)
@ -1053,10 +1050,9 @@ else if(SUBSCRIPTION_ALREADY_EXISTS.equals(returnCode))
if (!SUCCESS.equals(returnCode)
&& !AUTHENTICATION_FAILED.equals(returnCode))
{
new ErrorDialog(
GuiActivator.getUIService().getMainFrame(),
GuiActivator.getAlertUIService().showAlertPopup(
GuiActivator.getResources().getI18NString(
"service.gui.ERROR"), errorMessage).showDialog();
"service.gui.ERROR"), errorMessage);
}
}
}

@ -794,7 +794,7 @@ else if(SUBSCRIPTION_ALREADY_EXISTS.equals(returnCode))
if (!SUCCESS.equals(returnCode) &&
!AUTHENTICATION_FAILED.equals(returnCode))
{
MUCActivator.getAlertUIService().showAlertDialog(
MUCActivator.getAlertUIService().showAlertPopup(
resources.getI18NString("service.gui.ERROR"), errorMessage);
}

Loading…
Cancel
Save