Changeset 5114 in osm for applications/editors


Ignore:
Timestamp:
2007-10-22T13:57:42+02:00 (17 years ago)
Author:
gabriel
Message:

wmsplugin: Improve progress display.

Location:
applications/editors/josm/plugins/wmsplugin/src/wmsplugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/DownloadWMSTask.java

    r2121 r5114  
    3939       
    4040        @Override public void realRun() throws IOException {
     41                Main.pleaseWaitDlg.currentAction.setText(tr("Contacting WMS Server..."));
    4142                wmsLayer.grab(minlat,minlon,maxlat,maxlon);
    4243        }
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSImage.java

    r2121 r5114  
    1515import org.openstreetmap.josm.data.coor.LatLon;
    1616import org.openstreetmap.josm.gui.NavigatableComponent;
     17import org.openstreetmap.josm.io.ProgressInputStream;
    1718
    1819public class WMSImage
     
    9899        protected void doGrab (URL url) throws IOException
    99100        {
    100                 InputStream is = url.openStream();
     101                InputStream is = new ProgressInputStream(
     102                        url.openConnection(), Main.pleaseWaitDlg);
    101103                theImage = ImageIO.read(is) ;
    102104                is.close();
Note: See TracChangeset for help on using the changeset viewer.