Changeset 1811 in josm for trunk/src/org/openstreetmap/josm/actions/search
- Timestamp:
- 2009-07-19T17:38:55+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SelectionWebsiteLoader.java
r1670 r1811 39 39 } 40 40 @Override protected void realRun() { 41 Main.pleaseWaitDlg.currentAction.setText(tr("Contact {0}...", url.getHost()));41 progressMonitor.setTicksCount(2); 42 42 sel = mode != SearchAction.SearchMode.remove ? new LinkedList<OsmPrimitive>() : Main.ds.allNonDeletedPrimitives(); 43 43 try { 44 44 URLConnection con = url.openConnection(); 45 InputStream in = new ProgressInputStream(con, Main.pleaseWaitDlg); 46 Main.pleaseWaitDlg.currentAction.setText(tr("Downloading...")); 45 progressMonitor.subTask(tr("Contact {0}...", url.getHost())); 46 InputStream in = new ProgressInputStream(con, progressMonitor.createSubTaskMonitor(1, true)); 47 progressMonitor.subTask(tr("Downloading...")); 47 48 Map<Long, String> ids = idReader.parseIds(in); 48 49 for (OsmPrimitive osm : Main.ds.allNonDeletedPrimitives()) { … … 55 56 } 56 57 } 58 progressMonitor.worked(1); 57 59 } catch (IOException e) { 58 60 e.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.