source: josm/trunk/src/org/openstreetmap/josm/gui/util/FileFilterAllFiles.java@ 5572

Last change on this file since 5572 was 5572, checked in by bastiK, 11 years ago

fixed #8184 - Map paint settings: wrong file filter for adding local style files

File size: 715 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.util;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import java.io.File;
7
8import javax.swing.filechooser.FileFilter;
9
10/**
11 * A FileFilter that accepts all files.
12 */
13public class FileFilterAllFiles extends FileFilter {
14
15 private static FileFilterAllFiles INSTANCE;
16
17 public static FileFilterAllFiles getInstance() {
18 if (INSTANCE == null) {
19 INSTANCE = new FileFilterAllFiles();
20 }
21 return INSTANCE;
22 }
23
24 @Override
25 public boolean accept(File f) {
26 return true;
27 }
28
29 @Override
30 public String getDescription() {
31 return tr("All files (*.*)");
32 }
33}
Note: See TracBrowser for help on using the repository browser.