Changeset 13667 in osm for applications


Ignore:
Timestamp:
2009-02-11T18:17:20+01:00 (15 years ago)
Author:
stoecker
Message:

close #1905

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

Legend:

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

    r13666 r13667  
    2727    public EastNorth min, max;
    2828    public boolean downloadingStarted;
     29    public boolean failed = false;
    2930
    3031    public GeorefImage(boolean downloadingStarted) {
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Grabber.java

    r13497 r13667  
    5353        g.drawString(tr("Exception occurred"), 10, height()/2);
    5454        image.image = img;
     55        image.failed = true;
    5556        g.setFont(font);
    5657    }
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java

    r13654 r13667  
    204204                alphaChannel,
    205205                new JMenuItem(new changeResolutionAction()),
     206                new JMenuItem(new reloadErrorTilesAction()),
    206207                new JMenuItem(new downloadAction()),
    207208                new JSeparator(),
     
    237238            getPPD();
    238239            mv.repaint();
     240        }
     241    }
     242   
     243    public class reloadErrorTilesAction extends AbstractAction {
     244        public reloadErrorTilesAction() {
     245            super(tr("Reload erroneous tiles"));
     246        }
     247        public void actionPerformed(ActionEvent ev) {
     248            for (int x = 0; x < dax; ++x) {
     249                for (int y = 0; y < day; ++y) {
     250                    GeorefImage img = images[modulo(x,dax)][modulo(y,day)];
     251                    img.image = null;
     252                    img.downloadingStarted = false;
     253                    img.failed = false;
     254                    mv.repaint();
     255                }
     256            }
    239257        }
    240258    }
Note: See TracChangeset for help on using the changeset viewer.