Ignore:
Timestamp:
2013-08-21T03:47:16+02:00 (12 years ago)
Author:
donvip
Message:

[josm_plugins] fix #8987 - bump min JOSM version of nearly all plugins to r6162 + code update/cleanup, fix warnings

File:
1 moved

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanvecLayer.java

    r29853 r29854  
    3131
    3232// most of the layout was copied from the openstreetbugs plugin to get things started
    33 public class canvec_layer extends Layer implements MouseListener {
     33public class CanvecLayer extends Layer implements MouseListener {
    3434        private Icon layerIcon = null;
    3535        private int max_zoom = 4;
    36         public canvec_helper plugin_self;
     36        public CanvecHelper plugin_self;
    3737        private ArrayList<CanVecTile> tiles = new ArrayList<CanVecTile>();
    3838        public ArrayList<CanVecTile> downloadable = new ArrayList<CanVecTile>();
    3939        public ArrayList<CanVecTile> openable = new ArrayList<CanVecTile>();
    4040
    41         public canvec_layer(String name,canvec_helper self){
     41        public CanvecLayer(String name,CanvecHelper self){
    4242                super(name);
    4343                plugin_self = self;
     
    7171                                } else System.out.print("bad line '" + line + "'\n");
    7272                        }
     73                        br.close();
    7374                        CanVecTile tile = new CanVecTile(last_cell,"",0,"",this,list);
    7475                        if (tile.isValid()) tiles.add(tile);
     
    9293        }
    9394        public class MaxZoomAction extends AbstractAction implements LayerAction {
    94                 private canvec_layer parent;
    95                 public MaxZoomAction(canvec_layer parent) {
     95                private CanvecLayer parent;
     96                public MaxZoomAction(CanvecLayer parent) {
    9697                        this.parent = parent;
    9798                }
     
    124125        }
    125126        private class OpenOsmAction extends AbstractAction implements LayerAction {
    126                 private canvec_layer layer;
    127                 public OpenOsmAction(canvec_layer layer) {
     127                private CanvecLayer layer;
     128                public OpenOsmAction(CanvecLayer layer) {
    128129                        this.layer = layer;
    129130                }
     
    155156        }
    156157        private class DownloadCanvecAction extends AbstractAction implements LayerAction {
    157                 private canvec_layer parent;
    158                 public DownloadCanvecAction(canvec_layer parent) {
     158                private CanvecLayer parent;
     159                public DownloadCanvecAction(CanvecLayer parent) {
    159160                        this.parent = parent;
    160161                }
     
    207208                        tile.paint(g,mv,bounds,max_zoom);
    208209                }
    209                 long end = System.currentTimeMillis();
     210                //long end = System.currentTimeMillis();
    210211                //System.out.println((end-start)+"ms spent");
    211212        }
Note: See TracChangeset for help on using the changeset viewer.