Changeset 30319 in osm for applications/editors/josm/plugins/reverter
- Timestamp:
- 2014-03-10T02:36:47+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/reverter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/build.xml
r30307 r30319 4 4 <property name="commit.message" value="Reverter: Update MultiOsmReader to support null data after redaction"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="6 887"/>6 <property name="plugin.main.version" value="6906"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/reverter/src/reverter/corehacks/OsmChangesetContentParser.java
r28503 r30319 24 24 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 25 25 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 26 import org.openstreetmap.josm.io.OsmDataParsingException;27 26 import org.openstreetmap.josm.tools.CheckParameterUtil; 28 27 import org.openstreetmap.josm.tools.DateUtils; 28 import org.openstreetmap.josm.tools.XmlParsingException; 29 29 import org.xml.sax.Attributes; 30 30 import org.xml.sax.InputSource; … … 59 59 } 60 60 61 protected void throwException(String message) throws OsmDataParsingException {62 throw new OsmDataParsingException(61 protected void throwException(String message) throws XmlParsingException { 62 throw new XmlParsingException( 63 63 message 64 64 ).rememberLocation(locator); 65 65 } 66 66 67 protected void throwException(Exception e) throws OsmDataParsingException {68 throw new OsmDataParsingException(67 protected void throwException(Exception e) throws XmlParsingException { 68 throw new XmlParsingException( 69 69 e 70 70 ).rememberLocation(locator); 71 71 } 72 72 73 protected long getMandatoryAttributeLong(Attributes attr, String name) throws SAXException{ 73 protected long getMandatoryAttributeLong(Attributes attr, String name) throws SAXException { 74 74 String v = attr.getValue(name); 75 75 if (v == null) { … … 300 300 * if null 301 301 * @return the parsed data 302 * @throws OsmDataParsingException thrown if something went wrong. Check for chained 303 * exceptions. 302 * @throws XmlParsingException if something went wrong. Check for chained exceptions. 304 303 */ 305 public ChangesetDataSet parse(ProgressMonitor progressMonitor) throws OsmDataParsingException {304 public ChangesetDataSet parse(ProgressMonitor progressMonitor) throws XmlParsingException { 306 305 if (progressMonitor == null) { 307 306 progressMonitor = NullProgressMonitor.INSTANCE; … … 311 310 progressMonitor.indeterminateSubTask(tr("Parsing changeset content ...")); 312 311 SAXParserFactory.newInstance().newSAXParser().parse(source, new Parser()); 313 } catch( OsmDataParsingException e){312 } catch(XmlParsingException e){ 314 313 throw e; 315 314 } catch (ParserConfigurationException e) { 316 throw new OsmDataParsingException(e);315 throw new XmlParsingException(e); 317 316 } catch(SAXException e) { 318 throw new OsmDataParsingException(e);317 throw new XmlParsingException(e); 319 318 } catch(IOException e) { 320 throw new OsmDataParsingException(e);319 throw new XmlParsingException(e); 321 320 } finally { 322 321 progressMonitor.finishTask(); … … 329 328 * 330 329 * @return the parsed data 331 * @throws OsmDataParsingException thrown if something went wrong. Check for chained 332 * exceptions. 330 * @throws XmlParsingException if something went wrong. Check for chained exceptions. 333 331 */ 334 public ChangesetDataSet parse() throws OsmDataParsingException {332 public ChangesetDataSet parse() throws XmlParsingException { 335 333 return parse(null); 336 334 } -
applications/editors/josm/plugins/reverter/src/reverter/corehacks/OsmServerChangesetReader.java
r23273 r30319 21 21 import org.openstreetmap.josm.io.IllegalDataException; 22 22 import org.openstreetmap.josm.io.OsmChangesetParser; 23 import org.openstreetmap.josm.io.OsmDataParsingException;24 23 import org.openstreetmap.josm.io.OsmServerReader; 25 24 import org.openstreetmap.josm.io.OsmTransferException; 26 25 import org.openstreetmap.josm.tools.CheckParameterUtil; 26 import org.openstreetmap.josm.tools.XmlParsingException; 27 27 28 28 /** … … 194 194 } catch(UnsupportedEncodingException e) { 195 195 throw new OsmTransferException(e); 196 } catch( OsmDataParsingException e) {196 } catch(XmlParsingException e) { 197 197 throw new OsmTransferException(e); 198 198 } finally {
Note:
See TracChangeset
for help on using the changeset viewer.