Changeset 8557 in josm
- Timestamp:
- 2015-07-01T22:45:13+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r8541 r8557 1365 1365 if (value instanceof JsonString) { 1366 1366 // in some cases, when JsonValue.toString() is called, then additional quotation marks are left in value 1367 ret.put(e.getKey(), ((JsonString) value).getString());1367 ret.put(e.getKey(), ((JsonString) value).getString()); 1368 1368 } else { 1369 1369 ret.put(e.getKey(), e.getValue().toString()); -
trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java
r8549 r8557 50 50 * @param en2 The instance to subtract this one from. 51 51 * @return The new EastNorth position. 52 * @deprecated use {@code subtract} on the other EastNorth instead 52 53 */ 53 54 @Deprecated -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r8555 r8557 53 53 import org.openstreetmap.josm.data.osm.OsmPrimitive; 54 54 import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors; 55 import org.openstreetmap.josm.data.osm.visitor.paint.Rendering; 55 56 import org.openstreetmap.josm.data.osm.visitor.paint.relations.MultipolygonCache; 56 57 import org.openstreetmap.josm.gui.layer.GpxLayer; … … 350 351 351 352 MapScaler scaler = new MapScaler(forMapView); 352 scaler.setLocation(10, 30);353 scaler.setLocation(10, 30); 353 354 354 355 return Arrays.asList(zoomSlider, scaler); … … 691 692 ); 692 693 Collections.reverse(ret); 693 return ret; 694 return ret; 694 695 } finally { 695 696 layerLock.readLock().unlock(); … … 966 967 967 968 private OsmDataLayer findNewEditLayer(List<Layer> layersList) { 968 OsmDataLayer newEditLayer = layersList.contains(editLayer) ?editLayer:null;969 OsmDataLayer newEditLayer = layersList.contains(editLayer) ? editLayer : null; 969 970 // Find new edit layer 970 971 if (activeLayer != editLayer || !layersList.contains(editLayer)) { … … 1014 1015 * @param layer The layer to be active. 1015 1016 * @param setEditLayer if this is <code>true</code>, the edit layer is also set. 1016 * @return 1017 * @return {@code true} if the active layer has changed, {@code false otherwise} 1017 1018 */ 1018 1019 private boolean setActiveLayer(final Layer layer, boolean setEditLayer) { … … 1023 1024 return false; 1024 1025 1025 Layer old = activeLayer;1026 1026 activeLayer = layer; 1027 1027 if (setEditLayer) { … … 1054 1054 * order. This way it works as visual clue for new users */ 1055 1055 for (final AbstractButton b: Main.map.allMapModeButtons) { 1056 MapMode mode = (MapMode) b.getAction();1056 MapMode mode = (MapMode) b.getAction(); 1057 1057 final boolean activeLayerSupported = mode.layerIsSupported(activeLayer); 1058 1058 if (activeLayerSupported) { … … 1272 1272 @Override 1273 1273 public void repaint(long tm, int x, int y, int width, int height) { 1274 // This is the main repaint method, all other methods are convenience methods and simply call this method. This is just an observation, not a must, but seems to be true for all implementations I found so far. 1274 // This is the main repaint method, all other methods are convenience methods and simply call this method. 1275 // This is just an observation, not a must, but seems to be true for all implementations I found so far. 1275 1276 if (repaintListeners != null) { 1276 1277 // Might get called early in super constructor -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r8556 r8557 78 78 * Interface to notify listeners of the change of the system of measurement. 79 79 * @since 6056 80 * @deprecated use {@link org.openstreetmap.josm.data.SystemOfMeasurement.SoMChangeListener} instead. 80 81 */ 81 82 @Deprecated … … 135 136 136 137 /** 137 * Removes a SoM change listener 138 * Removes a SoM change listener. 138 139 * 139 140 * @param listener the listener. Ignored if null or already absent 140 141 * @since 6056 142 * @deprecated use {@link SystemOfMeasurement#removeSoMChangeListener} instead. 141 143 */ 142 144 @Deprecated … … 150 152 * @param listener the listener. Ignored if null or already registered. 151 153 * @since 6056 154 * @deprecated use {@link SystemOfMeasurement#addSoMChangeListener} instead. 152 155 */ 153 156 @Deprecated … … 160 163 * @return The current system of measurement (metric system by default). 161 164 * @since 3490 165 * @deprecated use {@link SystemOfMeasurement#getSoMChangeListener} instead. 162 166 */ 163 167 @Deprecated … … 171 175 * @throws IllegalArgumentException if {@code somKey} is not known 172 176 * @since 6056 177 * @deprecated use {@link SystemOfMeasurement#setSoMChangeListener} instead. 173 178 */ 174 179 @Deprecated … … 189 194 protected transient ViewportData initialViewport; 190 195 191 protected transient finalCursorManager cursorManager = new CursorManager(this);196 protected final transient CursorManager cursorManager = new CursorManager(this); 192 197 193 198 /** -
trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
r8550 r8557 332 332 @Override 333 333 public void propertyChange(PropertyChangeEvent evt) { 334 if ("active".equals(evt.getPropertyName()) && !(Boolean) evt.getNewValue()) {334 if ("active".equals(evt.getPropertyName()) && !(Boolean) evt.getNewValue()) { 335 335 abortSelecting(); 336 336 } … … 338 338 339 339 /** 340 * Stores the current selection and stores the result in {@link #selectionResult} to be retrieved by {@link #getSelectedObjects(boolean)} later. 340 * Stores the current selection and stores the result in {@link #selectionResult} to be retrieved by 341 * {@link #getSelectedObjects(boolean)} later. 341 342 * @param e The mouse event that caused the selection to be finished. 342 343 */ -
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r8554 r8557 34 34 import org.openstreetmap.josm.data.projection.Projection; 35 35 import org.openstreetmap.josm.gui.MapView; 36 import org.openstreetmap.josm.gui.NavigatableComponent;37 36 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 38 37 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; -
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r8543 r8557 45 45 * @param info ImageryInfo description of the layer 46 46 */ 47 48 49 47 public WMSLayer(ImageryInfo info) { 50 48 super(info); … … 150 148 ((TemplatedWMSTileSource) tileSource).initProjection(newValue); 151 149 } 152 153 150 } 154 155 151 }
Note:
See TracChangeset
for help on using the changeset viewer.