Changeset 11004 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-09-15T21:40:33+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/NativeFileChooser.java
r10931 r11004 7 7 import java.io.File; 8 8 import java.io.FilenameFilter; 9 import java.util.ArrayList; 10 import java.util.List; 9 11 10 12 import javax.swing.JFileChooser; … … 24 26 private final FileDialog fileDialog; 25 27 private FileFilter fileFilter; 28 private List<FileFilter> fileFilters = new ArrayList<>(); 26 29 private int selectionMode; 27 30 … … 45 48 // https://bugs.openjdk.java.net/browse/JDK-4811090 : Extend awt filedialog 46 49 // https://bugs.openjdk.java.net/browse/JDK-6192906 : Add more features to java.awt.FileDialog 50 fileFilters.add(filter); 47 51 } 48 52 … … 52 56 // https://bugs.openjdk.java.net/browse/JDK-4811090 : Extend awt filedialog 53 57 // https://bugs.openjdk.java.net/browse/JDK-6192906 : Add more features to java.awt.FileDialog 54 return new FileFilter[]{};58 return fileFilters.toArray(new FileFilter[0]); 55 59 } 56 60
Note:
See TracChangeset
for help on using the changeset viewer.