Ignore:
Timestamp:
2009-02-25T14:21:24+01:00 (15 years ago)
Author:
stoecker
Message:

close #2233 and some minor fixes. patch by xeen

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r1425 r1444  
    7575      */
    7676     private String parseNotes = new String();
     77     private int parseNotesCount = 0;
    7778     public String getParseNotes() {
    7879         return parseNotes;
     
    373374                    Node n = findNode(id);
    374375                    if (n == null) {
    375                          parseNotes += tr("Skipping a way because it includes a node that doesn''t exist: {0}\n", id);
     376                         /* don't report ALL of them, just a few */
     377                         if (parseNotesCount++ < 6) {
     378                             parseNotes += tr("Skipping a way because it includes a node that doesn''t exist: {0}\n", id);
     379                         } else if (parseNotesCount == 6) {
     380                             parseNotes += "...\n";
     381                         }
    376382                         failed = true;
    377383                         break;
  • trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java

    r1415 r1444  
    1010import org.openstreetmap.josm.data.osm.DataSet;
    1111import org.xml.sax.SAXException;
     12
     13import javax.swing.JOptionPane;
    1214
    1315public class OsmServerObjectReader extends OsmServerReader {
     
    4749                return null;
    4850            Main.pleaseWaitDlg.currentAction.setText(tr("Downloading OSM data..."));
    49             final DataSet data = OsmReader.parseDataSet(in, null, Main.pleaseWaitDlg);
     51            final OsmReader osm = OsmReader.parseDataSetOsm(in, null, Main.pleaseWaitDlg);
     52            final DataSet data = osm.getDs();
     53
    5054//          String origin = Main.pref.get("osm-server.url")+"/"+Main.pref.get("osm-server.version", "0.5");
    5155//          Bounds bounds = new Bounds(new LatLon(lat1, lon1), new LatLon(lat2, lon2));
    5256//          DataSource src = new DataSource(bounds, origin);
    5357//          data.dataSources.add(src);
     58            if (osm.getParseNotes().length() != 0) {
     59                JOptionPane.showMessageDialog(Main.parent, osm.getParseNotes());
     60            }
    5461            in.close();
    5562            activeConnection = null;
Note: See TracChangeset for help on using the changeset viewer.