예제 #1
0
  /**
   * Runs clean-up for associated resources which need explicit disposal (e.g. listeners keeping
   * this instance alive because they were added to the model which operationally outlives this
   * instance).
   */
  public void dispose() {
    pluginContainer.dispose();

    historyButton.dispose();

    if (this.chatSession != null && this.chatSession instanceof MetaContactChatSession)
      this.chatSession.removeChatTransportChangeListener(this);

    if (this.chatSession != null && this.chatSession instanceof ConferenceChatSession)
      ((ConferenceChatSession) this.chatSession).removeLocalUserRoleListener(this);
  }
예제 #2
0
 /**
  * Runs clean-up for associated resources which need explicit disposal (e.g. listeners keeping
  * this instance alive because they were added to the model which operationally outlives this
  * instance).
  */
 public void dispose() {
   pluginContainer.dispose();
 }