aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/UIServiceImpl.java')
-rw-r--r--src/net/java/sip/communicator/impl/gui/UIServiceImpl.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java b/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java
index a4eec98..d9bac36 100644
--- a/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java
+++ b/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java
@@ -34,6 +34,7 @@ import net.java.sip.communicator.service.contactlist.*;
import net.java.sip.communicator.service.gui.*;
import net.java.sip.communicator.service.gui.Container;
import net.java.sip.communicator.service.gui.event.*;
+import net.java.sip.communicator.service.muc.*;
import net.java.sip.communicator.service.protocol.*;
import net.java.sip.communicator.service.shutdown.*;
import net.java.sip.communicator.util.*;
@@ -55,6 +56,7 @@ import com.sun.jna.platform.WindowUtils;
* @author Lyubomir Marinov
* @author Dmitri Melnikov
* @author Adam Netocny
+ * @author Hristo Terezov
*/
public class UIServiceImpl
implements UIService,
@@ -1542,6 +1544,38 @@ public class UIServiceImpl
else
throw new IllegalArgumentException("participants");
}
+
+ /**
+ * Opens a chat room window for the given <tt>ChatRoomWrapper</tt> instance.
+ *
+ * @param chatRoom the chat room associated with the chat room window
+ */
+ public void openChatRoomWindow(ChatRoomWrapper chatRoom)
+ {
+ ChatWindowManager chatWindowManager
+ = getChatWindowManager();
+ ChatPanel chatPanel
+ = chatWindowManager.getMultiChat(chatRoom, true);
+
+ chatWindowManager.openChat(chatPanel, true);
+ }
+
+ /**
+ * Closes the chat room window for the given <tt>ChatRoomWrapper</tt>
+ * instance.
+ *
+ * @param chatRoom the chat room associated with the chat room window.
+ */
+ public void closeChatRoomWindow(ChatRoomWrapper chatRoom)
+ {
+ ChatWindowManager chatWindowManager
+ = getChatWindowManager();
+ ChatPanel chatPanel
+ = chatWindowManager.getMultiChat(chatRoom, false);
+
+ if (chatPanel != null)
+ chatWindowManager.closeChat(chatPanel);
+ }
/**
* Creates a contact list component.