Ignore:
Timestamp:
2009-01-17T19:26:41+01:00 (17 years ago)
Author:
ulfl
Message:

add setIndeterminate() to the PleaseWaitDialog and use it at a few places
add some more user feedback for task long running on huge data

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

Legend:

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

    r1169 r1281  
    9393            Main.pleaseWaitDlg.progress.setValue(0);
    9494            Main.pleaseWaitDlg.currentAction.setText(tr("Contacting OSM Server..."));
     95            Main.pleaseWaitDlg.setIndeterminate(true);
    9596            final InputStream in = getInputStream("map?bbox="+lon1+","+lat1+","+lon2+","+lat2, Main.pleaseWaitDlg);
     97            Main.pleaseWaitDlg.setIndeterminate(false);
    9698            if (in == null)
    9799                return null;
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r1279 r1281  
    501501             throw new SAXException(e1);
    502502        }
     503           
     504          Main.pleaseWaitDlg.currentAction.setText(tr("Prepare OSM data..."));
     505          Main.pleaseWaitDlg.setIndeterminate(true);
    503506
    504507          System.out.println("");
     
    522525                    o.id = 0;
    523526
    524           System.out.println("File loaded!");
     527          System.out.println("Data loaded!");
     528          Main.pleaseWaitDlg.setIndeterminate(false);
     529          Main.pleaseWaitDlg.progress.setValue(0);
    525530         
    526531          return osm;
Note: See TracChangeset for help on using the changeset viewer.