setRowText(object, SWTConstants.SHARED_LIST_FILE_SIZE_COLUMN_ID, FileFormatter.formatFileSize(file_size));
String mime_type = FileFormatter.formatMimeType(object.getMimeType());
setRowText(object,SWTConstants.SHARED_LIST_FILE_TYPE_COLUMN_ID,mime_type);
double percent_completed = 100d;
if (object instanceof PartialFile) {
PartialFile partial_file = (PartialFile)object;
percent_completed = partial_file.getPercentCompleted();
}
if (status == HASHED) {
setRowText(object,SWTConstants.SHARED_LIST_COMPLETED_COLUMN_ID,FileFormatter.formatProgress(percent_completed));
setRowText(object,SWTConstants.SHARED_LIST_FILE_ID_COLUMN_ID, object.getFileHash().getAsString());
} else