{
// this is a good place to trim out any .vuze files
if ( torrents != null && torrents.length > 0 ){
VuzeFileHandler vfh = VuzeFileHandler.getSingleton();
List non_vuze_files = new ArrayList();
List vuze_files = new ArrayList();
for (int i=0;i<torrents.length;i++){
String torrent = torrents[i];
try{
VuzeFile vf = vfh.loadVuzeFile( torrent );
if ( vf == null ){
non_vuze_files.add( torrent );
}else{
vuze_files.add( vf );
}
}catch( Throwable e ){
Debug.printStackTrace(e);
non_vuze_files.add( torrent );
}
}
if ( vuze_files.size() > 0 ){
VuzeFile[] vfs = new VuzeFile[vuze_files.size()];
vuze_files.toArray( vfs );
vfh.handleFiles( vfs, VuzeFileComponent.COMP_TYPE_NONE );
}
if ( non_vuze_files.size() == 0 && vuze_files.size() > 0 ){
return;