Changeset 8401 in josm
- Timestamp:
- 2015-05-20T02:46:51+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r8397 r8401 63 63 64 64 public static class LIFOQueue extends LinkedBlockingDeque<Runnable> { 65 66 /** 67 * Constructs a new {@code LIFOQueue} with a capacity of {@link Integer#MAX_VALUE}. 68 */ 65 69 public LIFOQueue() { 66 70 super(); 67 71 } 68 72 73 /** 74 * Constructs a new {@code LIFOQueue} with the given (fixed) capacity. 75 * @param capacity the capacity of this deque 76 * @throws IllegalArgumentException if {@code capacity} is less than 1 77 */ 69 78 public LIFOQueue(int capacity) { 70 79 super(capacity); … … 83 92 84 93 85 /* 94 /** 86 95 * ThreadPoolExecutor starts new threads, until THREAD_LIMIT is reached. Then it puts tasks into LIFOQueue, which is fairly 87 96 * small, but we do not want a lot of outstanding tasks queued, but rather prefer the class consumer to resubmit the task, which are -
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r8382 r8401 305 305 306 306 errors.add(new TestError(this, Severity.WARNING, ROLE_VERIF_PROBLEM_MSG, 307 tr(s, key, templates .toString()), MessageFormat.format(s, key), ROLE_UNKNOWN, n));307 tr(s, key, templates), MessageFormat.format(s, key), ROLE_UNKNOWN, n)); 308 308 } else { 309 309 String s = marktr("Empty role type found when expecting one of {0}"); -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java
r8388 r8401 64 64 private boolean canceled = false; 65 65 66 private ImageIcon iconResolved;67 private ImageIcon iconUnresolved;66 private final ImageIcon iconResolved; 67 private final ImageIcon iconUnresolved; 68 68 private StatisticsTableModel statisticsModel; 69 69 private JPanel pnlTagResolver; … … 306 306 } else { 307 307 boolean enabled = true; 308 for ( OsmPrimitiveType type: resolvers.keySet()) {309 enabled &= resolvers.get(type).getModel().isResolvedCompletely();308 for (TagConflictResolver val: resolvers.values()) { 309 enabled &= val.getModel().isResolvedCompletely(); 310 310 } 311 311 setEnabled(enabled); -
trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java
r8397 r8401 554 554 tileOptionMenu.add(new JMenuItem(new AbstractAction( 555 555 tr("Request Update")) { 556 @Override 556 557 public void actionPerformed(ActionEvent ae) { 557 558 if (clickedTile != null) { … … 1080 1081 1081 1082 private final TileSet nullTileSet = new TileSet((LatLon)null, (LatLon)null, 0); 1082 private class TileSet {1083 private final class TileSet { 1083 1084 private int x0, x1, y0, y1; 1084 1085 private int zoom; -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r8392 r8401 883 883 case 0: 884 884 if (info.projectionCode == null) return ""; 885 return info.projectionCode .toString();885 return info.projectionCode; 886 886 case 1: 887 887 return info.layerName; -
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r8390 r8401 77 77 * <li>relative or absolute file name</li> 78 78 * <li>{@code file:///SOME/FILE} the same as above</li> 79 * <li>{@code http://...} a URL. It will be cached on disk.</li> </ul>79 * <li>{@code http://...} a URL. It will be cached on disk.</li> 80 80 * <li>{@code resource://SOME/FILE} file from the classpath (usually in the current *.jar)</li> 81 * <li>{@code josmdir://SOME/FILE} file inside josm user data directory (since r7058)</li> </ul>81 * <li>{@code josmdir://SOME/FILE} file inside josm user data directory (since r7058)</li> 82 82 * <li>{@code josmplugindir://SOME/FILE} file inside josm plugin directory (since r7834)</li></ul> 83 83 */ … … 91 91 * <li>relative or absolute file name</li> 92 92 * <li>{@code file:///SOME/FILE} the same as above</li> 93 * <li>{@code http://...} a URL. It will be cached on disk.</li> </ul>93 * <li>{@code http://...} a URL. It will be cached on disk.</li> 94 94 * <li>{@code resource://SOME/FILE} file from the classpath (usually in the current *.jar)</li> 95 * <li>{@code josmdir://SOME/FILE} file inside josm user data directory (since r7058)</li> </ul>95 * <li>{@code josmdir://SOME/FILE} file inside josm user data directory (since r7058)</li> 96 96 * <li>{@code josmplugindir://SOME/FILE} file inside josm plugin directory (since r7834)</li></ul> 97 97 * @return this object
Note:
See TracChangeset
for help on using the changeset viewer.