Changeset 12783 in josm
- Timestamp:
- 2017-09-08T02:50:52+02:00 (7 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java
r12777 r12783 24 24 private final String gridFileName; 25 25 26 public static f loat NTV2_SOURCE_PRIORITY_LOCAL = 10f;27 public static f loat NTV2_SOURCE_PRIORITY_DOWNLOAD = 5f;26 public static final float NTV2_SOURCE_PRIORITY_LOCAL = 10f; 27 public static final float NTV2_SOURCE_PRIORITY_DOWNLOAD = 5f; 28 28 29 private static Map<Float, NTV2GridShiftFileSource> sources = 30 new TreeMap<Float, NTV2GridShiftFileSource>(Collections.reverseOrder()); 29 private static Map<Float, NTV2GridShiftFileSource> sources = new TreeMap<>(Collections.reverseOrder()); 31 30 32 31 /** -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2Proj4DirGridShiftFileSource.java
r12777 r12783 18 18 * @since 12777 19 19 */ 20 public class NTV2Proj4DirGridShiftFileSource implements NTV2GridShiftFileSource, PlatformVisitor<List<File>> {20 public final class NTV2Proj4DirGridShiftFileSource implements NTV2GridShiftFileSource, PlatformVisitor<List<File>> { 21 21 22 22 private NTV2Proj4DirGridShiftFileSource() { -
trunk/src/org/openstreetmap/josm/tools/PlatformHook.java
r12780 r12783 34 34 * Visitor to construct a PlatformHook from a given {@link Platform} object. 35 35 */ 36 staticfinal PlatformVisitor<PlatformHook> CONSTRUCT_FROM_PLATFORM = new PlatformVisitor<PlatformHook>() {36 final PlatformVisitor<PlatformHook> CONSTRUCT_FROM_PLATFORM = new PlatformVisitor<PlatformHook>() { 37 37 @Override 38 38 public PlatformHook visitUnixoid() { -
trunk/test/performance/org/openstreetmap/josm/gui/mappaint/MapRendererPerformanceTest.java
r12651 r12783 26 26 import org.junit.rules.Timeout; 27 27 import org.openstreetmap.josm.JOSMFixture; 28 import org.openstreetmap.josm.Main; 28 29 import org.openstreetmap.josm.PerformanceTestUtils; 29 30 import org.openstreetmap.josm.TestUtils; … … 35 36 import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer.StyleRecord; 36 37 import org.openstreetmap.josm.data.preferences.sources.SourceEntry; 37 import org.openstreetmap.josm.data.projection.Projections;38 38 import org.openstreetmap.josm.gui.MainApplication; 39 39 import org.openstreetmap.josm.gui.NavigatableComponent; … … 187 187 scale = SCALE_Z17; 188 188 } 189 nc.zoomTo( Projections.project(center), scale);189 nc.zoomTo(Main.getProjection().latlon2eastNorth(center), scale); 190 190 if (checkScale) { 191 191 int lvl = Selector.OptimizedGeneralSelector.scale2level(nc.getDist100Pixel());
Note:
See TracChangeset
for help on using the changeset viewer.