git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-4239 Using own id generation to avoid Random.nextLong() not implemented in jalviewjs
[jalview.git]
/
src
/
jalview
/
io
/
JalviewFileView.java
diff --git
a/src/jalview/io/JalviewFileView.java
b/src/jalview/io/JalviewFileView.java
index
b90bd7a
..
5996781
100755
(executable)
--- a/
src/jalview/io/JalviewFileView.java
+++ b/
src/jalview/io/JalviewFileView.java
@@
-50,8
+50,7
@@
public class JalviewFileView extends FileView
for (String ext : exts.split(","))
{
ext = ext.trim().toLowerCase(Locale.ROOT);
for (String ext : exts.split(","))
{
ext = ext.trim().toLowerCase(Locale.ROOT);
- extensions.put(ext,
- desc + ("jar".equals(ext) ? " (old)" : ""));
+ extensions.put(ext, desc + ("jar".equals(ext) ? " (old)" : ""));
}
}
}
}
}
}
@@
-60,9
+59,9
@@
public class JalviewFileView extends FileView
public String getTypeDescription(File f)
{
String extension = getExtension(f);
public String getTypeDescription(File f)
{
String extension = getExtension(f);
-
+
String type = getDescriptionForExtension(extension);
String type = getDescriptionForExtension(extension);
-
+
if (extension != null)
{
if (extensions.containsKey(extension))
if (extension != null)
{
if (extensions.containsKey(extension))
@@
-170,7
+169,7
@@
public class JalviewFileView extends FileView
}
else
{
}
else
{
- System.err.println(
+ jalview.bin.Console.errPrintln(
"JalviewFileView.createImageIcon: Couldn't find file: "
+ filePath);
}
"JalviewFileView.createImageIcon: Couldn't find file: "
+ filePath);
}