Changeset 3679 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2010-11-29T08:24:10+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/FileImporter.java
r3501 r3679 36 36 /** 37 37 * Needs to be implemented if isBatchImporter() returns false. 38 * @throws IllegalDataException39 38 */ 40 39 public void importData(File file, ProgressMonitor progressMonitor) throws IOException, IllegalDataException { … … 44 43 /** 45 44 * Needs to be implemented if isBatchImporter() returns true. 46 * @throws IllegalDataException47 45 */ 48 46 public void importData(List<File> files, ProgressMonitor progressMonitor) throws IOException, IllegalDataException { … … 52 50 /** 53 51 * Wrapper to give meaningful output if things go wrong. 52 * @return true if data import was successful 54 53 */ 55 public voidimportDataHandleExceptions(File f, ProgressMonitor progressMonitor) {54 public boolean importDataHandleExceptions(File f, ProgressMonitor progressMonitor) { 56 55 try { 57 56 System.out.println("Open file: " + f.getAbsolutePath() + " (" + f.length() + " bytes)"); 58 57 importData(f, progressMonitor); 58 return true; 59 59 } catch (Exception e) { 60 60 e.printStackTrace(); … … 65 65 JOptionPane.ERROR_MESSAGE, null 66 66 ); 67 return false; 67 68 } 68 69 } 69 public voidimportDataHandleExceptions(List<File> files, ProgressMonitor progressMonitor) {70 public boolean importDataHandleExceptions(List<File> files, ProgressMonitor progressMonitor) { 70 71 try { 71 72 System.out.println("Open "+files.size()+" files"); 72 73 importData(files, progressMonitor); 74 return true; 73 75 } catch (Exception e) { 74 76 e.printStackTrace(); … … 79 81 JOptionPane.ERROR_MESSAGE, null 80 82 ); 83 return false; 81 84 } 82 85 }
Note:
See TracChangeset
for help on using the changeset viewer.