Last change
on this file since 13691 was 12537, checked in by Don-vip, 7 years ago |
PMD - VariableNamingConventions
|
-
Property svn:eol-style
set to
native
|
File size:
826 bytes
|
Rev | Line | |
---|
[5572] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.gui.util;
|
---|
| 3 |
|
---|
| 4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
| 5 |
|
---|
| 6 | import java.io.File;
|
---|
| 7 |
|
---|
| 8 | import javax.swing.filechooser.FileFilter;
|
---|
| 9 |
|
---|
| 10 | /**
|
---|
| 11 | * A FileFilter that accepts all files.
|
---|
[8126] | 12 | * @since 5572
|
---|
[5572] | 13 | */
|
---|
| 14 | public class FileFilterAllFiles extends FileFilter {
|
---|
[6070] | 15 |
|
---|
[12537] | 16 | private static FileFilterAllFiles instance;
|
---|
[5572] | 17 |
|
---|
[8126] | 18 | /**
|
---|
| 19 | * Replies the unique instance.
|
---|
| 20 | * @return the unique instance
|
---|
| 21 | */
|
---|
| 22 | public static synchronized FileFilterAllFiles getInstance() {
|
---|
[12537] | 23 | if (instance == null) {
|
---|
| 24 | instance = new FileFilterAllFiles();
|
---|
[5572] | 25 | }
|
---|
[12537] | 26 | return instance;
|
---|
[5572] | 27 | }
|
---|
| 28 |
|
---|
| 29 | @Override
|
---|
| 30 | public boolean accept(File f) {
|
---|
| 31 | return true;
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | @Override
|
---|
| 35 | public String getDescription() {
|
---|
| 36 | return tr("All files (*.*)");
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.