Changeset 10111 in osm for applications
- Timestamp:
- 2008-08-24T16:37:05+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/slippymap
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/slippymap/build.xml
r7821 r10111 49 49 <target name="compile" depends="init"> 50 50 <echo message="creating ${plugin.jar}"/> 51 <javac srcdir="src" classpath="../../core/dist/josm-custom.jar" destdir="build" /> 51 <javac srcdir="src" classpath="../../core/dist/josm-custom.jar" destdir="build"> 52 <compilerarg value="-Xlint:deprecation"/> 53 </javac> 52 54 </target> 53 55 -
applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapLayer.java
r5689 r10111 1 1 package org.openstreetmap.josm.plugins.slippymap; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.awt.Color; … … 54 56 public SlippyMapLayer() 55 57 { 56 super("Slippy Map"); 58 super(tr("Slippy Map")); 57 59 58 60 clearTileStorage(); 59 61 60 62 tileOptionMenu = new JPopupMenu(); 61 tileOptionMenu.add(new JMenuItem(new AbstractAction("Load Tile") 63 tileOptionMenu.add(new JMenuItem(new AbstractAction(tr("Load Tile")) 62 64 { 63 65 public void actionPerformed(ActionEvent ae) … … 72 74 })); 73 75 74 tileOptionMenu.add(new JMenuItem(new AbstractAction("Show Tile Status") 76 tileOptionMenu.add(new JMenuItem(new AbstractAction(tr("Show Tile Status")) 75 77 { 76 78 public void actionPerformed(ActionEvent ae) … … 85 87 })); 86 88 87 tileOptionMenu.add(new JMenuItem(new AbstractAction("Request Update") 89 tileOptionMenu.add(new JMenuItem(new AbstractAction(tr("Request Update")) 88 90 { 89 91 public void actionPerformed(ActionEvent ae) … … 98 100 })); 99 101 100 tileOptionMenu.add(new JMenuItem(new AbstractAction("Load All Tiles") 102 tileOptionMenu.add(new JMenuItem(new AbstractAction(tr("Load All Tiles")) 101 103 { 102 104 public void actionPerformed(ActionEvent ae) … … 125 127 }); 126 128 127 Main.map.mapView 128 .addLayerChangeListener(new MapView.LayerChangeListener() 129 listeners.add(new LayerChangeListener() 129 130 { 130 131 public void activeLayerChange(Layer oldLayer, … … 324 325 if (tile.getImage() == null) 325 326 { 326 g.drawString("image not loaded", p.x + 2, texty); 327 g.drawString(tr("image not loaded"), p.x + 2, texty); 327 328 texty += 1 + fontHeight; 328 329 } … … 474 475 if (key.startsWith(SlippyMapPreferences.PREFERENCE_PREFIX)) 475 476 { 476 System.err.println(this + ".preferenceChanged('" + key + "', '" 477 + newValue + "') called"); 477 // System.err.println(this + ".preferenceChanged('" + key + "', '" 478 // + newValue + "') called"); 478 479 479 480 clearTileStorage(); -
applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapPreferenceSetting.java
r5691 r10111 40 40 for (int i = 0; i < allMapUrls.length; i++) 41 41 { 42 System.err.println("Comparing '" + source + "' to '" 43 42 // System.err.println("Comparing '" + source + "' to '" 43 // + allMapUrls[i]); 44 44 45 45 if (source.equals(allMapUrls[i])) -
applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapTile.java
r5689 r10111 1 1 package org.openstreetmap.josm.plugins.slippymap; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.awt.Image; … … 67 69 BufferedReader in = new BufferedReader(new InputStreamReader(devc 68 70 .getInputStream())); 69 metadata = in.readLine(); 71 metadata = tr(in.readLine()); 70 72 } 71 73 catch (Exception ex) 72 74 { 73 metadata = "error loading metadata"; 75 metadata = tr("error loading metadata"); 74 76 } 75 77 … … 85 87 BufferedReader in = new BufferedReader(new InputStreamReader(devc 86 88 .getInputStream())); 87 metadata = "requested: " +in.readLine();89 metadata = tr("requested: {0}", tr(in.readLine())); 88 90 } 89 91 catch (Exception ex) 90 92 { 91 metadata = "error requesting update"; 93 metadata = tr("error requesting update"); 92 94 } 93 95 }
Note:
See TracChangeset
for help on using the changeset viewer.