src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
/**
     * Updates the status of the given chat transport in the send via selector
     * box and notifies the user for the status change.
     * @param chatTransport the <tt>chatTransport</tt> to update
     */
Updates the status of the given chat transport in the send via selector
box and notifies the user for the status change.
@param chatTransport the chatTransport to update
Updates the status of the given chat transport in the send via selector box and notifies the user for the status change . @param chatTransport the chatTransport to update
public void updateChatTransportStatus(final ChatTransport chatTransport)
    {
        if(!SwingUtilities.isEventDispatchThread())
        {
            SwingUtilities.invokeLater(new Runnable()
            {
                public void run()
                {
                    updateChatTransportStatus(chatTransport);
                }
            });
            return;
        }
        writeMessagePanel.updateChatTransportStatus(chatTransport);
        if (!chatTransport.equals(chatSession.getCurrentChatTransport()))
            return;
        if(ConfigurationUtils.isShowStatusChangedInChat())
        {
            this.addMessage(
                chatTransport.getName(),
                new Date(),
                Chat.STATUS_MESSAGE,
                GuiActivator.getResources().getI18NString(
                    "service.gui.STATUS_CHANGED_CHAT_MESSAGE",
                    new String[]{chatTransport.getStatus().getStatusName()}),
                    "text/plain");
        }
    }
public void updateChatTransportStatus ( final ChatTransport chatTransport ) { if ( ! SwingUtilities . isEventDispatchThread ( ) ) { SwingUtilities . invokeLater ( new Runnable ( ) { public void run ( ) { updateChatTransportStatus ( chatTransport ) ; } } ) ; return ; } writeMessagePanel . updateChatTransportStatus ( chatTransport ) ; if ( ! chatTransport . equals ( chatSession . getCurrentChatTransport ( ) ) ) return ; if ( ConfigurationUtils . isShowStatusChangedInChat ( ) ) { this . addMessage ( chatTransport . getName ( ) , new Date ( ) , Chat . STATUS_MESSAGE , GuiActivator . getResources ( ) . getI18NString ( "service.gui.STATUS_CHANGED_CHAT_MESSAGE" , new String [ ] { chatTransport . getStatus ( ) . getStatusName ( ) } ) , "text/plain" ) ; } }
Updates the status of the given chat transport in the send via selector
 box and notifies the user for the status change.
Updates the status of the given chat transport in the send via selector box and notifies the user for the status change .
// Show a status message to the user.