Changeset 22805
- Timestamp:
- 08/09/10 17:40:54 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/intermine/MineManager/installer/src/main/java/org/intermine/install/swing/source/PropertyComponentCreator.java
r22795 r22805 445 445 } 446 446 /** 447 * Check whether the given file is a directory.447 * Check whether the given file has the appropriate extension. 448 448 * 449 449 * @param f The file to check. 450 450 * 451 451 * @return <code>true</code> if <code>f</code> is a directory, 452 * <code>false</code> if not.452 * or has the appropriate extension, <code>false</code> if not. 453 453 */ 454 454 @Override … … 456 456 boolean ok = f.isDirectory(); 457 457 if (! ok) { 458 ok = f.getName(). endsWith(extension);458 ok = f.getName().toUpperCase().endsWith(extension.toUpperCase()); 459 459 } 460 460 return ok; … … 473 473 message = "filefilter.extension." + extension; 474 474 } else { 475 message = extension .toUpperCase()+ Messages.getMessage("filefilter.files");475 message = extension + Messages.getMessage("filefilter.files"); 476 476 } 477 477 return Messages.getMessage(message);
Note: See TracChangeset
for help on using the changeset viewer.
