Ignore:
Timestamp:
2009-10-24T10:20:45+02:00 (15 years ago)
Author:
Gubaer
Message:

see #3761: Precondition failed: Node is still used by way
Also added help for this use case, see help

File:
1 edited

Legend:

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

    r2273 r2303  
    1414import org.openstreetmap.josm.data.osm.Way;
    1515import org.openstreetmap.josm.data.osm.visitor.MergeVisitor;
     16import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    1617import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    1718
     
    134135        progressMonitor.beginTask(null, 2);
    135136        try {
    136             progressMonitor.indeterminateSubTask(tr("Contacting OSM Server..."));
     137            progressMonitor.indeterminateSubTask(tr("Downloading from OSM Server..."));
    137138            StringBuffer sb = new StringBuffer();
    138139            sb.append(primitiveType.getAPIName())
     
    160161        }
    161162    }
    162     /**
    163 
     163
     164    /**
    164165     * Reads referring relations from the API server and replies them in a {@see DataSet}
    165166     *
     167     * @param progressMonitor the progress monitor
    166168     * @return the data set
    167169     * @throws OsmTransferException
     
    213215     *
    214216     * @param ds the original dataset
     217     * @param progressMonitor  the progress monitor
    215218     * @return the modified dataset
    216219     * @throws OsmTransferException thrown if an exception occurs.
     
    251254     * replies them as {@see DataSet}
    252255     *
     256     * @param progressMonitor the progress monitor. Set to {@see NullProgressMonitor#INSTANCE} if null.
    253257     * @return the dataset with the referring primitives
    254258     * @exception OsmTransferException thrown if an error occurs while communicating with the server
     
    256260    @Override
    257261    public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException {
    258         progressMonitor.beginTask(null, 3);
    259         try {
     262        if (progressMonitor == null) {
     263            progressMonitor = NullProgressMonitor.INSTANCE;
     264        }
     265        try {
     266            progressMonitor.beginTask(null, 3);
    260267            DataSet ret = new DataSet();
    261268            if (primitiveType.equals(OsmPrimitiveType.NODE)) {
Note: See TracChangeset for help on using the changeset viewer.