- Timestamp:
- 2015-09-18T00:57:22+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r8752 r8764 162 162 return 3; 163 163 } 164 164 165 @Override 165 166 public String getColumnName(int column) { … … 172 173 } 173 174 } 175 174 176 @Override 175 public boolean isCellEditable(int row, int column) { return false; } 177 public boolean isCellEditable(int row, int column) { 178 return false; 179 } 176 180 }); 177 181 this.list.setPreferredSize(new Dimension(400, 400)); … … 679 683 Set<String> ret = new HashSet<>(); 680 684 if (currentLayer == null) { 681 for (Layer layer: this.layers) {685 for (Layer layer: this.layers) { 682 686 ret.add(layer.tileMatrixSet.crs); 683 687 } 684 688 } else { 685 for (Layer layer: this.layers) {689 for (Layer layer: this.layers) { 686 690 if (currentLayer.name.equals(layer.name)) { 687 691 ret.add(layer.tileMatrixSet.crs); -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r8729 r8764 524 524 * Abstract action which allows to adjust a double value using a slider 525 525 */ 526 public static abstractclass AbstractLayerPropertySliderAction extends AbstractAction implements IEnabledStateUpdating, LayerAction {526 public abstract static class AbstractLayerPropertySliderAction extends AbstractAction implements IEnabledStateUpdating, LayerAction { 527 527 protected final JPopupMenu popup; 528 528 protected final JSlider slider; … … 539 539 @Override 540 540 public void stateChanged(ChangeEvent e) { 541 setValue( (double)slider.getValue() / factor);541 setValue(slider.getValue() / factor); 542 542 } 543 543 }); -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r8751 r8764 143 143 * use fairly small memory cache, as cached objects are quite big, as they contain BufferedImages 144 144 */ 145 public static final IntegerProperty MEMORY_CACHE_SIZE = new IntegerProperty(PREFERENCE_PREFIX + ".cache.max_objects_ram", (int)Math.max(200, 200 * Math.pow(4, ZOOM_OFFSET.get()))); 145 public static final IntegerProperty MEMORY_CACHE_SIZE = new IntegerProperty(PREFERENCE_PREFIX + ".cache.max_objects_ram", 146 (int) Math.max(200, 200 * Math.pow(4, ZOOM_OFFSET.get()))); 146 147 147 148 /* -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java
r8762 r8764 38 38 if (!cacheOff) { 39 39 try { 40 cache = JCSCacheManager.getCache("geoimage-thumbnails", 0, 120, Main.pref.getCacheDirectory().getPath() + File.separator + "geoimage-thumbnails"); 40 cache = JCSCacheManager.getCache("geoimage-thumbnails", 0, 120, 41 Main.pref.getCacheDirectory().getPath() + File.separator + "geoimage-thumbnails"); 41 42 } catch (IOException e) { 42 43 Main.warn("Failed to initialize cache for geoimage-thumbnails"); … … 134 135 if (!cacheOff && cache != null) { 135 136 try (ByteArrayOutputStream output = new ByteArrayOutputStream()) { 136 ImageIO.write(scaledBI, "png", output);137 ImageIO.write(scaledBI, "png", output); 137 138 cache.put(cacheIdent, new BufferedImageCacheEntry(output.toByteArray())); 138 139 } catch (IOException e) { … … 144 145 return scaledBI; 145 146 } 146 147 147 } -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java
r8750 r8764 217 217 String[][] ret = new String[sortedStats.size()][3]; 218 218 int index = 0; 219 for (Pair<String, Integer> e: sortedStats) {219 for (Pair<String, Integer> e: sortedStats) { 220 220 ret[index] = new String[]{e.a, e.b.toString(), tr("Clear")}; 221 221 index++; -
trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java
r8744 r8764 1 // License: GPL. For details, see LICENSE file. 1 2 package org.openstreetmap.josm.io; 2 3 -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r8756 r8764 1303 1303 */ 1304 1304 public static ThreadFactory newThreadFactory(final String nameFormat, final int threadPriority) { 1305 final String ignore = String.format(Locale.ENGLISH, nameFormat, 0); // fail fast1305 final String ignore = String.format(Locale.ENGLISH, nameFormat, 0); // fail fast 1306 1306 return new ThreadFactory() { 1307 1307 final AtomicLong count = new AtomicLong(0);
Note:
See TracChangeset
for help on using the changeset viewer.