- Timestamp:
- 2009-01-17T19:26:41+01:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/PleaseWaitDialog.java
r1184 r1281 50 50 }); 51 51 } 52 53 public void setIndeterminate(boolean newValue) { 54 progressBar.setIndeterminate(newValue); 55 } 52 56 } -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r1180 r1281 222 222 @Override public void mergeFrom(final Layer from) { 223 223 final MergeVisitor visitor = new MergeVisitor(data,((OsmDataLayer)from).data); 224 for (final OsmPrimitive osm : ((OsmDataLayer)from).data.allPrimitives()) 224 int i=0; 225 int max = ((OsmDataLayer)from).data.allPrimitives().size(); 226 227 System.out.format("Add/Merge data:"); 228 229 for (final OsmPrimitive osm : ((OsmDataLayer)from).data.allPrimitives()) { 230 i++; 231 if(i%100 == 0) { 232 double perc = (((double)i) / ((double)max) * 100.0); 233 System.out.format(" " + (int)perc + "%%"); 234 } 225 235 osm.visit(visitor); 236 } 226 237 visitor.fixReferences(); 238 System.out.println(""); 227 239 228 240 // copy the merged layer's data source info -
trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java
r1169 r1281 93 93 Main.pleaseWaitDlg.progress.setValue(0); 94 94 Main.pleaseWaitDlg.currentAction.setText(tr("Contacting OSM Server...")); 95 Main.pleaseWaitDlg.setIndeterminate(true); 95 96 final InputStream in = getInputStream("map?bbox="+lon1+","+lat1+","+lon2+","+lat2, Main.pleaseWaitDlg); 97 Main.pleaseWaitDlg.setIndeterminate(false); 96 98 if (in == null) 97 99 return null; -
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r1279 r1281 501 501 throw new SAXException(e1); 502 502 } 503 504 Main.pleaseWaitDlg.currentAction.setText(tr("Prepare OSM data...")); 505 Main.pleaseWaitDlg.setIndeterminate(true); 503 506 504 507 System.out.println(""); … … 522 525 o.id = 0; 523 526 524 System.out.println("File loaded!"); 527 System.out.println("Data loaded!"); 528 Main.pleaseWaitDlg.setIndeterminate(false); 529 Main.pleaseWaitDlg.progress.setValue(0); 525 530 526 531 return osm;
Note:
See TracChangeset
for help on using the changeset viewer.