Class AllFormatsImporter
- java.lang.Object
-
- org.openstreetmap.josm.gui.io.importexport.FileImporter
-
- org.openstreetmap.josm.gui.io.importexport.AllFormatsImporter
-
- All Implemented Interfaces:
java.lang.Comparable<FileImporter>
public class AllFormatsImporter extends FileImporter
Dummy importer that adds the "All Formats"-Filter when opening files
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.gui.io.importexport.FileImporter
filter, options
-
-
Constructor Summary
Constructors Constructor Description AllFormatsImporter()
Constructs a newAllFormatsImporter
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptFile(java.io.File pathname)
Determines if this file importer accepts the given file.private static java.lang.String
getAllExtensions()
Builds list of all supported extensions by the registered FileImporters.-
Methods inherited from class org.openstreetmap.josm.gui.io.importexport.FileImporter
compareTo, getPriority, importData, importData, importDataHandleExceptions, importDataHandleExceptions, isBatchImporter, isEnabled, setEnabled, setOptions
-
-
-
-
Constructor Detail
-
AllFormatsImporter
public AllFormatsImporter()
Constructs a newAllFormatsImporter
.
-
-
Method Detail
-
acceptFile
public boolean acceptFile(java.io.File pathname)
Description copied from class:FileImporter
Determines if this file importer accepts the given file.- Overrides:
acceptFile
in classFileImporter
- Parameters:
pathname
- The file to test- Returns:
true
if this file importer accepts the given file,false
otherwise
-
getAllExtensions
private static java.lang.String getAllExtensions()
Builds list of all supported extensions by the registered FileImporters.- Returns:
- String comma separated list of supported file extensions
-
-