src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
/**
     * Returns the first chat transport for the current chat session that
     * supports file transfer.
     *
     * @return the first chat transport for the current chat session that
     * supports file transfer.
     */
Returns the first chat transport for the current chat session that
supports file transfer.

@return the first chat transport for the current chat session that
supports file transfer.
Returns the first chat transport for the current chat session that supports file transfer . @return the first chat transport for the current chat session that supports file transfer .
public ChatTransport findFileTransferChatTransport()
    {
        if (chatSession instanceof ConferenceChatSession)
            return null;
        ChatTransport currentChatTransport
            = chatSession.getCurrentChatTransport();
        if (currentChatTransport.getProtocolProvider()
                .getOperationSet(OperationSetFileTransfer.class) != null)
        {
            return currentChatTransport;
        }
        else
        {
            Iterator<ChatTransport> chatTransportsIter
                = chatSession.getChatTransports();
            while (chatTransportsIter.hasNext())
            {
                ChatTransport chatTransport = chatTransportsIter.next();
                Object fileTransferOpSet
                    = chatTransport.getProtocolProvider()
                        .getOperationSet(OperationSetFileTransfer.class);
                if (fileTransferOpSet != null)
                    return chatTransport;
            }
        }
        return null;
    }
public ChatTransport findFileTransferChatTransport ( ) { if ( chatSession instanceof ConferenceChatSession ) return null ; ChatTransport currentChatTransport = chatSession . getCurrentChatTransport ( ) ; if ( currentChatTransport . getProtocolProvider ( ) . getOperationSet ( OperationSetFileTransfer . class ) != null ) { return currentChatTransport ; } else { Iterator < ChatTransport > chatTransportsIter = chatSession . getChatTransports ( ) ; while ( chatTransportsIter . hasNext ( ) ) { ChatTransport chatTransport = chatTransportsIter . next ( ) ; Object fileTransferOpSet = chatTransport . getProtocolProvider ( ) . getOperationSet ( OperationSetFileTransfer . class ) ; if ( fileTransferOpSet != null ) return chatTransport ; } } return null ; }
Returns the first chat transport for the current chat session that
 supports file transfer.
Returns the first chat transport for the current chat session that supports file transfer .
// We currently don't support file transfer in group chats.