Last change
on this file since 2078 was 2070, checked in by Gubaer, 15 years ago |
new: rewrite of CombineWay action
new: conflict resolution dialog for CombineWay, including conflicts for different relation memberships
cleanup: cleanup in OsmReader, reduces memory footprint and reduces parsing time
cleanup: made most of the public fields in OsmPrimitive @deprecated, added accessors and changed the code
cleanup: replaced usages of @deprecated constructors for ExtendedDialog
fixed #3208: Combine ways brokes relation order
WARNING: this changeset touches a lot of code all over the code base. "latest" might become slightly unstable in the next days. Also experience incompatibility issues with plugins in the next few days.
|
File size:
691 bytes
|
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 |
|
---|
11 | public abstract class FileImporter {
|
---|
12 |
|
---|
13 | public ExtensionFileFilter filter;
|
---|
14 |
|
---|
15 | public FileImporter(ExtensionFileFilter filter) {
|
---|
16 | this.filter = filter;
|
---|
17 | }
|
---|
18 |
|
---|
19 | public boolean acceptFile(File pathname) {
|
---|
20 | return filter.acceptName(pathname.getName());
|
---|
21 | }
|
---|
22 |
|
---|
23 | public void importData(File file) throws IOException, IllegalDataException {
|
---|
24 | throw new IOException(tr("Could not read \"{0}\"", file.getName()));
|
---|
25 | }
|
---|
26 |
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.