Changeset 31909 in osm for applications/editors/josm/plugins/mapillary/src
- Timestamp:
- 2016-01-02T14:22:20+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryAbstractImage.java
r31882 r31909 5 5 import java.util.Calendar; 6 6 import java.util.Date; 7 import java.util.Locale;8 7 9 8 import org.openstreetmap.josm.Main; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryData.java
r31883 r31909 2 2 package org.openstreetmap.josm.plugins.mapillary; 3 3 4 import java.util.*; 4 import java.util.Collections; 5 import java.util.List; 6 import java.util.Set; 5 7 import java.util.concurrent.ConcurrentHashMap; 6 import java.util.concurrent.ConcurrentSkipListSet;7 8 import java.util.concurrent.CopyOnWriteArrayList; 8 9 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryExportAction.java
r31882 r31909 10 10 import java.io.IOException; 11 11 import java.util.ArrayList; 12 import java.util.List;13 12 import java.util.Set; 14 13 import java.util.concurrent.ConcurrentSkipListSet; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportAction.java
r31882 r31909 6 6 import java.awt.event.ActionEvent; 7 7 import java.awt.event.KeyEvent; 8 import java.beans.beancontext.BeanContextChildComponentProxy;9 8 import java.io.File; 10 9 import java.io.IOException; 11 import java.util.ArrayList;12 import java.util.List;13 10 import java.util.Set; 14 11 import java.util.concurrent.ConcurrentSkipListSet; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportIntoSequenceAction.java
r31882 r31909 8 8 import java.io.File; 9 9 import java.io.IOException; 10 import java.util.*; 10 import java.util.ArrayList; 11 import java.util.Collections; 12 import java.util.Comparator; 13 import java.util.List; 11 14 import java.util.concurrent.ConcurrentSkipListSet; 12 15 … … 97 100 } 98 101 joinImages(); 99 MapillaryRecord.getInstance().addCommand(new CommandImport(new ConcurrentSkipListSet(images))); 102 MapillaryRecord.getInstance().addCommand(new CommandImport(new ConcurrentSkipListSet<>(images))); 100 103 } 101 104 MapillaryUtils.showAllPictures(); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterChooseSigns.java
r31805 r31909 66 66 } 67 67 68 private void addCheckBoxWithLabel(final JPanel parentPanel, final JCheckBox checkBox, 68 private static void addCheckBoxWithLabel(final JPanel parentPanel, final JCheckBox checkBox, 69 69 final boolean isSelected, final String iconPath, final String labelText) { 70 70 final JPanel checkBoxPanel = new JPanel(); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryMainDialog.java
r31882 r31909 39 39 import org.openstreetmap.josm.plugins.mapillary.actions.WalkListener; 40 40 import org.openstreetmap.josm.plugins.mapillary.actions.WalkThread; 41 import org.openstreetmap.josm.plugins.mapillary.cache.CacheUtils;42 41 import org.openstreetmap.josm.plugins.mapillary.cache.MapillaryCache; 43 42 import org.openstreetmap.josm.tools.ImageProvider; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandDelete.java
r31882 r31909 5 5 6 6 import java.util.HashMap; 7 import java.util.List;8 7 import java.util.Map; 9 8 import java.util.Set; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandImport.java
r31882 r31909 4 4 import static org.openstreetmap.josm.tools.I18n.trn; 5 5 6 import java.util.List;7 6 import java.util.Set; 8 7 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandJoin.java
r31882 r31909 31 31 */ 32 32 public CommandJoin(List<MapillaryAbstractImage> images) { 33 super(new ConcurrentSkipListSet(images)); 33 super(new ConcurrentSkipListSet<>(images)); 34 34 a = images.get(0); 35 35 b = images.get(1); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandMove.java
r31882 r31909 4 4 import static org.openstreetmap.josm.tools.I18n.trn; 5 5 6 import java.util.List;7 6 import java.util.Set; 8 7 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandTurn.java
r31882 r31909 4 4 import static org.openstreetmap.josm.tools.I18n.trn; 5 5 6 import java.util.List;7 6 import java.util.Set; 8 7 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/CommandUnjoin.java
r31882 r31909 5 5 6 6 import java.util.List; 7 import java.util.Set;8 7 import java.util.concurrent.ConcurrentSkipListSet; 9 8 … … 32 31 */ 33 32 public CommandUnjoin(List<MapillaryAbstractImage> images) { 34 super(new ConcurrentSkipListSet(images)); 33 super(new ConcurrentSkipListSet<>(images)); 35 34 a = images.get(0); 36 35 b = images.get(1); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/MapillaryCommand.java
r31882 r31909 2 2 package org.openstreetmap.josm.plugins.mapillary.history.commands; 3 3 4 import java.util.ArrayList;5 import java.util.List;6 4 import java.util.Set; 7 5 import java.util.concurrent.ConcurrentSkipListSet; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/history/commands/MapillaryExecutableCommand.java
r31882 r31909 2 2 package org.openstreetmap.josm.plugins.mapillary.history.commands; 3 3 4 import java.util.List;5 4 import java.util.Set; 6 5 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/MapillaryDownloader.java
r31840 r31909 29 29 30 30 /** Possible download modes. */ 31 public enum MODES {Automatic, Semiautomatic, Manual} ;31 public enum MODES {Automatic, Semiautomatic, Manual} 32 32 33 33 /** All the Threads that have been run. Used to interrupt them properly. */ -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/MapillarySequenceDownloadThread.java
r31882 r31909 114 114 } 115 115 116 MapillaryLayer.getInstance().getData().add(new ConcurrentSkipListSet(finalImages), false); 116 MapillaryLayer.getInstance().getData().add(new ConcurrentSkipListSet<MapillaryAbstractImage>(finalImages), false); 117 117 } 118 118 } catch (IOException e) { … … 122 122 } 123 123 124 private boolean isInside(MapillaryAbstractImage image) { 124 private static boolean isInside(MapillaryAbstractImage image) { 125 125 for (Bounds b : MapillaryLayer.getInstance().getData().bounds) { 126 126 if (b.contains(image.getLatLon())) { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/mode/SelectMode.java
r31882 r31909 8 8 import java.awt.event.InputEvent; 9 9 import java.awt.event.MouseEvent; 10 import java.util.ArrayList;11 10 import java.util.concurrent.ConcurrentSkipListSet; 12 11 … … 86 85 .indexOf(this.lastClicked); 87 86 if (i < j) 88 this.data.addMultiSelectedImage(new ConcurrentSkipListSet(this.closest.getSequence() 87 this.data.addMultiSelectedImage(new ConcurrentSkipListSet<>(this.closest.getSequence() 89 88 .getImages().subList(i, j + 1))); 90 89 else 91 this.data.addMultiSelectedImage(new ConcurrentSkipListSet(this.closest.getSequence() 90 this.data.addMultiSelectedImage(new ConcurrentSkipListSet<>(this.closest.getSequence() 92 91 .getImages().subList(j, i + 1))); 93 92 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/oauth/UploadUtils.java
r31882 r31909 9 9 import java.io.OutputStream; 10 10 import java.util.HashMap; 11 import java.util.List;12 11 import java.util.Set; 13 12 import java.util.UUID; … … 180 179 exifDirectory.removeField(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL); 181 180 exifDirectory.add(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL, 182 ((MapillaryImportedImage) image).getDate("yyyy/MM/dd HH:mm:ss"));181 image.getDate("yyyy/MM/dd HH:mm:ss")); 183 182 184 183 // Removes the ImageDescription tag, that causes problems in the upload. … … 275 274 */ 276 275 public static void uploadSequence(MapillarySequence sequence, boolean delete) { 277 Main.worker.submit(new SequenceUploadThread(new ConcurrentSkipListSet(sequence.getImages()), delete)); 276 Main.worker.submit(new SequenceUploadThread(new ConcurrentSkipListSet<>(sequence.getImages()), delete)); 278 277 } 279 278 }
Note:
See TracChangeset
for help on using the changeset viewer.