Changeset 17340 in osm for applications/editors/josm


Ignore:
Timestamp:
2009-08-29T22:10:57+02:00 (15 years ago)
Author:
petrdlouhy
Message:

Code cosmetics

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

Legend:

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

    r16290 r17340  
    1010import org.openstreetmap.josm.Main;
    1111import org.openstreetmap.josm.data.ProjectionBounds;
    12 import org.openstreetmap.josm.data.coor.EastNorth;
    1312import org.openstreetmap.josm.data.projection.Projection;
    1413import org.openstreetmap.josm.gui.MapView;
     
    2726    {
    2827        this.b = b;
    29         this.proj = Main.main.proj;
     28        this.proj = Main.proj;
    3029        this.pixelPerDegree = layer.pixelPerDegree;
    3130        this.image = image;
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java

    r17334 r17340  
    7777    protected URL getURL(double w, double s,double e,double n,
    7878            int wi, int ht) throws MalformedURLException {
    79         String proj = Main.proj.toCode();
     79        String myProj = Main.proj.toCode();
    8080        if(Main.proj instanceof Mercator) // don't use mercator code directly
    8181        {
    8282            LatLon sw = Main.proj.eastNorth2latlon(new EastNorth(w, s));
    8383            LatLon ne = Main.proj.eastNorth2latlon(new EastNorth(e, n));
    84             proj = "EPSG:4326";
     84            myProj = "EPSG:4326";
    8585            s = sw.lat();
    8686            w = sw.lon();
     
    9696
    9797        if (urlWithPatterns) {
    98             str = str.replaceAll("\\{proj\\}", proj)
     98            str = str.replaceAll("\\{proj\\}", myProj)
    9999            .replaceAll("\\{bbox\\}", bbox)
    100100            .replaceAll("\\{width\\}", String.valueOf(wi))
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java

    r17339 r17340  
    11package wmsplugin;
    22
     3import org.openstreetmap.josm.io.CacheFiles;
    34import static org.openstreetmap.josm.tools.I18n.tr;
    45
     
    257258                        // Delete small files, because they're probably blank tiles.
    258259                        // See https://josm.openstreetmap.de/ticket/2307
    259                         WMSPlugin.cache.customCleanUp(WMSPlugin.cache.CLEAN_SMALL_FILES, 2048);
     260                        WMSPlugin.cache.customCleanUp(CacheFiles.CLEAN_SMALL_FILES, 2048);
    260261
    261262                        for (int x = 0; x < dax; ++x) {
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java

    r16781 r17340  
    4949    public WMSPlugin() {
    5050        refreshMenu();
    51         cache.setExpire(cache.EXPIRE_MONTHLY, false);
     51        cache.setExpire(CacheFiles.EXPIRE_MONTHLY, false);
    5252        cache.setMaxSize(70, false);
    5353    }
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPreferenceEditor.java

    r16781 r17340  
    22
    33import java.awt.FlowLayout;
    4 import javax.swing.JCheckBox;
    5 import javax.swing.JSpinner;
    6 import javax.swing.SpinnerNumberModel;
    74import org.openstreetmap.josm.Main;
    85import static org.openstreetmap.josm.tools.I18n.tr;
     
    5653                @Override
    5754            public boolean isCellEditable(int row,int column){return false;}
    58         };;
     55        };
    5956        JScrollPane scrolldef = new JScrollPane(listdef);
    6057        p.add(scrolldef, GBC.eol().insets(0,5,0,0).fill(GBC.BOTH));
Note: See TracChangeset for help on using the changeset viewer.