Ejemplo n.º 1
0
  private AbstractChatTab addAndGetChannelTab(String playerOrChannelName) {
    JavaFxUtil.assertApplicationThread();

    if (!nameToChatTab.containsKey(playerOrChannelName)) {
      AbstractChatTab tab = chatTabFactory.createChannelTab(playerOrChannelName);
      addTab(playerOrChannelName, tab);
    }
    return nameToChatTab.get(playerOrChannelName);
  }
Ejemplo n.º 2
0
  private AbstractChatTab addAndGetPrivateMessageTab(String username) {
    JavaFxUtil.assertApplicationThread();

    if (!nameToChatTab.containsKey(username)) {
      AbstractChatTab tab = chatTabFactory.createPrivateMessageTab(username);
      addTab(username, tab);
    }

    return nameToChatTab.get(username);
  }