Changeset 34737 in osm
- Timestamp:
- 2018-11-25T13:34:03+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/editgpx
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/.classpath
r32680 r34737 2 2 <classpath> 3 3 <classpathentry kind="src" path="src"/> 4 <classpathentry excluding="src/" including="images/" kind="src" path=""/> 4 <classpathentry excluding="src/|test/unit/|test/unit/" including="images/" kind="src" path=""/> 5 <classpathentry kind="src" output="bintest" path="test/unit"> 6 <attributes> 7 <attribute name="test" value="true"/> 8 </attributes> 9 </classpathentry> 5 10 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> 6 11 <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> -
applications/editors/josm/plugins/editgpx/.settings/org.eclipse.jdt.core.prefs
r32699 r34737 9 9 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 10 10 org.eclipse.jdt.core.compiler.compliance=1.8 11 org.eclipse.jdt.core.compiler.doc.comment.support=enabled 11 12 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning 12 13 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error … … 32 33 org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning 33 34 org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore 35 org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning 36 org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled 37 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled 38 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled 39 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private 34 40 org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore 35 41 org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning … … 38 44 org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled 39 45 org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore 46 org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore 47 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled 48 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public 49 org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag 50 org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning 51 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled 52 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled 53 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private 40 54 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore 41 55 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled -
applications/editors/josm/plugins/editgpx/.settings/org.sonarlint.eclipse.core.prefs
r32155 r34737 2 2 eclipse.preferences.version=1 3 3 extraProperties= 4 moduleKey=josm-plugins 5 serverId=josm 4 fileExclusions= -
applications/editors/josm/plugins/editgpx/build.xml
r34505 r34737 4 4 <property name="commit.message" value="Changed constructor signature of plugin main class"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="14 153"/>6 <property name="plugin.main.version" value="14434"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java
r34505 r34737 131 131 * convert a DataSet to GPX 132 132 * 133 * @param booleananonTime If true set all time and date in GPX to 01/01/1970 00:00 ?134 * @return G PXData133 * @param anonTime If true set all time and date in GPX to 01/01/1970 00:00 ? 134 * @return GpxData 135 135 */ 136 136 private GpxData toGpxData(boolean anonTime) { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxMode.java
r34505 r34737 107 107 /** 108 108 * create rectangle out of two given corners 109 * @param p1 first corner 110 * @param p2 second corner 111 * @return rectangle 109 112 */ 110 113 public Rectangle createRect(Point p1, Point p2) { … … 137 140 /** 138 141 * Draw a selection rectangle on screen. 142 * @param p1 first corner 143 * @param p2 second corner 139 144 */ 140 145 private void paintRect(Point p1, Point p2) { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxData.java
r30737 r34737 71 71 * time of the oldest waypoint in the set of non-deleted waypoints 72 72 * in this data (in seconds since Epoch) 73 * @return time in seconds since Epoch 73 74 */ 74 75 public double minNonDeletedTime() { … … 80 81 try { 81 82 double t = track.minNonDeletedTime(); 82 if ( (!foundOne) || (t < minTime)) {83 if (!foundOne || t < minTime) { 83 84 minTime = t; 84 85 } -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java
r30737 r34737 5 5 import java.util.ArrayList; 6 6 import java.util.Collection; 7 import java.util.Date;8 7 import java.util.HashMap; 9 8 import java.util.List; … … 42 41 43 42 final DateFormat iso8601 = 44 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");43 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); 45 44 final TimeZone utc = TimeZone.getTimeZone("UTC"); 46 45 iso8601.setTimeZone(utc); … … 54 53 for (WayPoint w : points) { 55 54 double t = w.time - minTime; 56 w.attr.put("time", iso8601.format( 57 new Date((long)(t * 1000)))); 58 w.setTime(); 55 w.setTimeInMillis((long)(t * 1000)); 59 56 assert w.time == t; 60 57 if (w.attr.containsKey("name")) { … … 87 84 * time of the oldest waypoint in the set of non-deleted waypoints 88 85 * in this track (in seconds since Epoch) 86 * @return time in seconds since Epoch 89 87 */ 90 88 public double minNonDeletedTime() { … … 96 94 try { 97 95 double t = segment.minNonDeletedTime(); 98 if ( (!foundOne) || (t < minTime)) {96 if (!foundOne || t < minTime) { 99 97 minTime = t; 100 98 } -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrackSegment.java
r30737 r34737 46 46 * time of the oldest waypoint in the set of non-deleted waypoints 47 47 * in this segment (in seconds since Epoch) 48 * @return time in seconds since Epoch 48 49 */ 49 50 public double minNonDeletedTime() { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxWayPoint.java
r33782 r34737 36 36 /** 37 37 * returns this waypoint's time in seconds since Epoch 38 * @return time in seconds since Epoch 38 39 */ 39 40 public double getTime() {
Note:
See TracChangeset
for help on using the changeset viewer.