Ignore:
Timestamp:
2018-08-18T17:09:37+02:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14153

Location:
applications/editors/josm/plugins/ElevationProfile
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ElevationProfile/.classpath

    r32680 r34507  
    22<classpath>
    33        <classpathentry kind="src" path="src"/>
    4         <classpathentry kind="src" path="test/unit"/>
     4        <classpathentry kind="src" output="buildtest" path="test/unit">
     5                <attributes>
     6                        <attribute name="test" value="true"/>
     7                </attributes>
     8        </classpathentry>
    59        <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
    610        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
  • applications/editors/josm/plugins/ElevationProfile/build.xml

    r33551 r34507  
    44    <property name="commit.message" value="[josm_elevationprofile]"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="12669"/>
     6    <property name="plugin.main.version" value="14153"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/HgtReader.java

    r32775 r34507  
    1111import java.util.HashMap;
    1212
    13 import org.openstreetmap.josm.Main;
     13import org.openstreetmap.josm.data.Preferences;
    1414import org.openstreetmap.josm.data.coor.LatLon;
    1515import org.openstreetmap.josm.tools.CheckParameterUtil;
     
    4444                cache.put(file, null);
    4545                // Try all resource directories
    46                 for (String location : Main.pref.getAllPossiblePreferenceDirs()) {
     46                for (String location : Preferences.getAllPossiblePreferenceDirs()) {
    4747                    String fullPath = new File(location + File.separator + "elevation", file).getPath();
    4848                    File f = new File(fullPath);
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/DefaultElevationProfileRenderer.java

    r33815 r34507  
    1919import java.util.List;
    2020
    21 import org.openstreetmap.josm.Main;
    2221import org.openstreetmap.josm.data.gpx.WayPoint;
     22import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    2323import org.openstreetmap.josm.gui.MapView;
    2424import org.openstreetmap.josm.plugins.elevation.ElevationHelper;
     
    151151
    152152        // transform to view
    153         Point pnt1 = mv.getPoint(wpt1.getEastNorth(Main.getProjection()));
    154         Point pnt2 = mv.getPoint(wpt2.getEastNorth(Main.getProjection()));
     153        Point pnt1 = mv.getPoint(wpt1.getEastNorth(ProjectionRegistry.getProjection()));
     154        Point pnt2 = mv.getPoint(wpt2.getEastNorth(ProjectionRegistry.getProjection()));
    155155
    156156        // use thick line, if possible
     
    189189
    190190        Color c = getColorForWaypoint(profile, wpt, kind);
    191         Point pnt = mv.getPoint(wpt.getEastNorth(Main.getProjection()));
     191        Point pnt = mv.getPoint(wpt.getEastNorth(ProjectionRegistry.getProjection()));
    192192
    193193        /* Paint full hour label */
     
    236236        Color c = getColorForWaypoint(profile, wpt, kind);
    237237        int eleH = (int) ElevationHelper.getElevation(wpt);
    238         Point pnt = mv.getPoint(wpt.getEastNorth(Main.getProjection()));
     238        Point pnt = mv.getPoint(wpt.getEastNorth(ProjectionRegistry.getProjection()));
    239239
    240240        TriangleDir td = TriangleDir.Up;
     
    360360
    361361        Color c = getColorForWaypoint(profile, wpt, kind);
    362         Point pnt = mv.getPoint(wpt.getEastNorth(Main.getProjection()));
     362        Point pnt = mv.getPoint(wpt.getEastNorth(ProjectionRegistry.getProjection()));
    363363        drawSphere(g, Color.WHITE, c, pnt.x, pnt.y, BIG_WPT_RADIUS);
    364364    }
Note: See TracChangeset for help on using the changeset viewer.