StringBuffer errorBuf = new StringBuffer( "Error indexing file" );
if ( e.getIndexedFile() != null ) {
errorBuf.append( " " ).append( e.getIndexedFile().getAbsolutePath() );
errorFiles.add( e.getIndexedFile() );
}
StatusChangeEvent statusEvent = new StatusChangeEvent( this,
errorBuf.toString() );
fireStatusChangeEvent( statusEvent );
} else if ( newPercentIndexed > percentIndexed ) {
StatusChangeEvent statusEvent = new StatusChangeEvent( this, "Indexing "
+ vol.getBaseDir() + " - " + newPercentIndexed + "%");
fireStatusChangeEvent( statusEvent );
}
}