Changeset 18593 in osm for applications/editors/josm/plugins/agpifoj
- Timestamp:
- 2009-11-14T19:27:50+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/agpifoj
- Files:
-
- 4 edited
-
.classpath (modified) (1 diff)
-
build.xml (modified) (1 diff)
-
src/org/openstreetmap/josm/plugins/agpifoj/AgpifojLayer.java (modified) (8 diffs)
-
src/org/openstreetmap/josm/plugins/agpifoj/CorrelateGpxWithImages.java (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/agpifoj/.classpath
r16603 r18593 2 2 <classpath> 3 3 <classpathentry kind="src" path="src"/> 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JDK 5"/> 5 5 <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> 6 <classpathentry kind="lib" path="/JOSM/lib/metadata-extractor-2.3.1-nosun.jar"/> 6 7 <classpathentry kind="output" path="bin"/> 7 8 </classpath> -
applications/editors/josm/plugins/agpifoj/build.xml
r18287 r18593 34 34 <attribute name="Plugin-Early" value="false"/> 35 35 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/AgPifoJ"/> 36 <attribute name="Plugin-Mainversion" value="2 322"/>36 <attribute name="Plugin-Mainversion" value="2450"/> 37 37 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 38 38 </manifest> -
applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/AgpifojLayer.java
r18287 r18593 9 9 10 10 import java.awt.Component; 11 import java.awt.Graphics; 11 import java.awt.Graphics2D; 12 12 import java.awt.Point; 13 13 import java.awt.Rectangle; … … 31 31 import org.openstreetmap.josm.Main; 32 32 import org.openstreetmap.josm.actions.RenameLayerAction; 33 import org.openstreetmap.josm.data.Bounds; 33 34 import org.openstreetmap.josm.data.coor.CachedLatLon; 34 35 import org.openstreetmap.josm.data.coor.LatLon; … … 109 110 this.errorMessages.add(message); 110 111 } 111 112 112 113 public Loader(File[] selection) { 113 114 super(tr("Extracting GPS locations from EXIF")); 114 115 this.selection = selection; 115 errorMessages = new LinkedHashSet<String>(); 116 errorMessages = new LinkedHashSet<String>(); 116 117 } 117 118 … … 122 123 try { 123 124 addRecursiveFiles(files, selection); 124 } catch(NullPointerException npe) { 125 } catch(NullPointerException npe) { 125 126 rememberError(tr("One of the selected files was null")); 126 127 } … … 128 129 if (cancelled) { 129 130 return; 130 } 131 } 131 132 progressMonitor.subTask(tr("Read photos...")); 132 133 progressMonitor.setTicksCount(files.size()); … … 200 201 } catch(NullPointerException npe) { 201 202 npe.printStackTrace(); 202 203 203 204 rememberError(tr("Found null file in directory {0}\n", f.getPath())); 204 205 } … … 232 233 return sb.toString(); 233 234 } 234 235 235 236 @Override protected void finish() { 236 237 if (!errorMessages.isEmpty()) { … … 361 362 362 363 @Override 363 public void paint(Graphics g, MapView mv) { 364 public void paint(Graphics2D g, MapView mv, Bounds bounds) { 364 365 365 366 int iconWidth = icon.getIconWidth() / 2; -
applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/CorrelateGpxWithImages.java
r17526 r18593 96 96 } 97 97 98 public String toString() { 98 @Override 99 public String toString() { 99 100 return name; 100 101 } … … 172 173 x.printStackTrace(); 173 174 JOptionPane.showMessageDialog( 174 Main.parent, 175 Main.parent, 175 176 tr("Error while parsing {0}",sel.getName())+": "+x.getMessage(), 176 177 tr("Error"), … … 181 182 x.printStackTrace(); 182 183 JOptionPane.showMessageDialog( 183 Main.parent, 184 Main.parent, 184 185 tr("Could not read \"{0}\"",sel.getName())+"\n"+x.getMessage(), 185 186 tr("Error"), … … 386 387 while (! isOk) { 387 388 int answer = JOptionPane.showConfirmDialog( 388 Main.parent, panel, 389 tr("Synchronize time from a photo of the GPS receiver"), 389 Main.parent, panel, 390 tr("Synchronize time from a photo of the GPS receiver"), 390 391 JOptionPane.OK_CANCEL_OPTION, 391 392 JOptionPane.QUESTION_MESSAGE … … 637 638 // Search whether an other layer has yet defined some bounding box. 638 639 // If none, we'll zoom to the bounding box of the layer with the photos. 639 Collection<Layer> layerCol = Main.map.mapView.getAllLayers();640 Iterator<Layer> layerIter = layerCol.iterator();641 640 boolean boundingBoxedLayerFound = false; 642 while (layerIter.hasNext()) { 643 Layer l = layerIter.next(); 641 for (Layer l: Main.map.mapView.getAllLayers()) { 644 642 if (l != yLayer) { 645 643 BoundingXYVisitor bbox = new BoundingXYVisitor(); … … 657 655 } 658 656 659 Main.ma in.map.repaint();657 Main.map.repaint(); 660 658 661 659 JOptionPane.showMessageDialog(Main.parent, tr("Found {0} matches of {1} in GPX track {2}", matched, dateImgLst.size(), selectedGpx.name), … … 886 884 ExtendedDialog d = new ExtendedDialog(Main.parent, 887 885 tr("Adjust timezone and offset"), 888 new String[] { tr("Close"), tr("Default Values") } 886 new String[] { tr("Close"), tr("Default Values") } 889 887 ); 890 888
Note:
See TracChangeset
for help on using the changeset viewer.
