| Revision 3083,
743 bytes
checked in by bastiK, 2 years ago
(diff) |
|
added svn:eol-style=native to source files
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | // License: GPL. For details, see LICENSE file. |
|---|
| 2 | package org.openstreetmap.josm.io; |
|---|
| 3 | |
|---|
| 4 | import static org.openstreetmap.josm.tools.I18n.tr; |
|---|
| 5 | |
|---|
| 6 | import java.io.File; |
|---|
| 7 | import java.io.IOException; |
|---|
| 8 | |
|---|
| 9 | import org.openstreetmap.josm.actions.ExtensionFileFilter; |
|---|
| 10 | import org.openstreetmap.josm.gui.layer.Layer; |
|---|
| 11 | |
|---|
| 12 | public abstract class FileExporter { |
|---|
| 13 | public ExtensionFileFilter filter; |
|---|
| 14 | |
|---|
| 15 | public FileExporter(ExtensionFileFilter filter) { |
|---|
| 16 | this.filter = filter; |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | public boolean acceptFile(File pathname, Layer layer) { |
|---|
| 20 | return filter.acceptName(pathname.getName()); |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | public void exportData(File file, Layer layer) throws IOException { |
|---|
| 24 | throw new IOException(tr("Could not export ''{0}''.", file.getName())); |
|---|
| 25 | } |
|---|
| 26 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.