TRHostTorrent tr_torrent = (TRHostTorrent)cell.getDataSource();
if ( tr_torrent == null ){
cell.setText("");
}else{
TOTorrent torrent = tr_torrent.getTorrent();
DownloadManager dm = azureus_core.getGlobalManager().getDownloadManager( torrent );
String cat_str = null;
if ( dm != null ){
Category cat = dm.getDownloadState().getCategory();
if (cat != null){
cat_str = cat.getName();
}
}else{
// pick up specific torrent category, bit 'o' a hack tis
cat_str = TorrentUtils.getPluginStringProperty( torrent, "azcoreplugins.category" );
}
cell.setText( cat_str==null?"":cat_str);
}