src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
/**
     * Cancels all active file transfers.
     */
Cancels all active file transfers.
Cancels all active file transfers .
public void cancelActiveFileTransfers()
    {
        Enumeration<String> activeKeys = activeFileTransfers.keys();
        while (activeKeys.hasMoreElements())
        {
            try
            {
                String key = activeKeys.nextElement();
                Object descriptor = activeFileTransfers.get(key);
                if (descriptor instanceof IncomingFileTransferRequest)
                {
                    ((IncomingFileTransferRequest) descriptor).rejectFile();
                }
                else if (descriptor instanceof FileTransfer)
                {
                    ((FileTransfer) descriptor).cancel();
                }
            }
            catch(Throwable t)
            {
                logger.error("Cannot cancel file transfer.", t);
            }
        }
    }
public void cancelActiveFileTransfers ( ) { Enumeration < String > activeKeys = activeFileTransfers . keys ( ) ; while ( activeKeys . hasMoreElements ( ) ) { try { String key = activeKeys . nextElement ( ) ; Object descriptor = activeFileTransfers . get ( key ) ; if ( descriptor instanceof IncomingFileTransferRequest ) { ( ( IncomingFileTransferRequest ) descriptor ) . rejectFile ( ) ; } else if ( descriptor instanceof FileTransfer ) { ( ( FileTransfer ) descriptor ) . cancel ( ) ; } } catch ( Throwable t ) { logger . error ( "Cannot cancel file transfer." , t ) ; } } }
Cancels all active file transfers.
Cancels all active file transfers .
// catchall so if anything happens we still // will close the chat/window