return entry.getType().getIconLabel();
}
private FileListEntry decodeEntry(ArrayList<String> contents, boolean deduceUnknownType) {
ExternalFileType type = Globals.prefs.getExternalFileTypeByName
(getElementIfAvailable(contents, 2));
if (deduceUnknownType && (type instanceof UnknownExternalFileType)) {
// No file type was recognized. Try to find a usable file type based
// on the extension:
ExternalFileType typeGuess = null;
String link = getElementIfAvailable(contents, 1);
int index = link.lastIndexOf('.');
if ((index >= 0) && (index < link.length()-1)) {
String extension = link.substring(index+1);
typeGuess = Globals.prefs.getExternalFileTypeByExt(extension);