Changeset 30319 in osm for applications
- Timestamp:
- 2014-03-10T02:36:47+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/build.xml
r30203 r30319 4 4 <property name="commit.message" value="JOSM/CommandLine: fix exception after JOSM update"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="6 690"/>6 <property name="plugin.main.version" value="6906"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/CommandLine/src/CommandLine/OsmToCmd.java
r30145 r30319 41 41 import org.openstreetmap.josm.data.osm.WayData; 42 42 import org.openstreetmap.josm.io.IllegalDataException; 43 import org.openstreetmap.josm.io.OsmDataParsingException;44 43 import org.openstreetmap.josm.io.UTFInputStreamReader; 45 44 import org.openstreetmap.josm.tools.DateUtils; 45 import org.openstreetmap.josm.tools.XmlParsingException; 46 46 import org.xml.sax.Attributes; 47 47 import org.xml.sax.InputSource; … … 94 94 } 95 95 96 protected void throwException(String msg) throws OsmDataParsingException {97 throw new OsmDataParsingException(msg).rememberLocation(locator);96 protected void throwException(String msg) throws XmlParsingException { 97 throw new XmlParsingException(msg).rememberLocation(locator); 98 98 } 99 99 -
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 { -
applications/editors/josm/plugins/roadsigns/build.xml
r30250 r30319 4 4 <property name="commit.message" value="preset maintenance (Fahrradstraße)"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="6 340"/>6 <property name="plugin.main.version" value="6906"/> 7 7 8 8 <!-- -
applications/editors/josm/plugins/roadsigns/src/org/openstreetmap/josm/plugins/roadsigns/RoadSignsReader.java
r29854 r30319 21 21 import org.xml.sax.SAXParseException; 22 22 import org.xml.sax.helpers.DefaultHandler; 23 24 23 import org.openstreetmap.josm.Main; 25 import org.openstreetmap.josm.io.OsmDataParsingException;26 24 import org.openstreetmap.josm.plugins.roadsigns.Sign.SignParameter; 27 25 import org.openstreetmap.josm.plugins.roadsigns.Sign.Tag; … … 29 27 import org.openstreetmap.josm.plugins.roadsigns.javacc.TokenMgrError; 30 28 import org.openstreetmap.josm.tools.LanguageInfo; 29 import org.openstreetmap.josm.tools.XmlParsingException; 31 30 32 31 /** … … 202 201 } 203 202 204 private String getMandatoryAttribute(Attributes atts, String ident) throws OsmDataParsingException {203 private String getMandatoryAttribute(Attributes atts, String ident) throws XmlParsingException { 205 204 String result = atts.getValue(ident); 206 205 if (result == null) { … … 223 222 throw new ExtendedParsingException(e).rememberLocation(locator); 224 223 } 225 protected void throwException(String msg) throws OsmDataParsingException {226 throw new OsmDataParsingException(msg).rememberLocation(locator);224 protected void throwException(String msg) throws XmlParsingException { 225 throw new XmlParsingException(msg).rememberLocation(locator); 227 226 } 228 227 … … 230 229 try { 231 230 throwException(s); 232 } catch ( OsmDataParsingException ex) {231 } catch (XmlParsingException ex) { 233 232 System.err.println("Warning: "+ex.getMessage()); 234 233 } 235 234 } 236 public void wireSupplements() throws OsmDataParsingException {235 public void wireSupplements() throws XmlParsingException { 237 236 Map<String, Sign> map = new HashMap<String, Sign>(); 238 237 for (Sign sign : allSigns) {
Note:
See TracChangeset
for help on using the changeset viewer.