Changeset 30737 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/imagery_offset_db/src/iodb
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/IODBReader.java
r29430 r30737 36 36 public IODBReader( InputStream source ) throws IOException { 37 37 this.source = new InputSource(UTFInputStreamReader.create(source, "UTF-8")); 38 this.offsets = new ArrayList< ImageryOffsetBase>();38 this.offsets = new ArrayList<>(); 39 39 } 40 40 … … 212 212 maxZoom = -1; 213 213 flagged = false; 214 geometry = new ArrayList< LatLon>();214 geometry = new ArrayList<>(); 215 215 } 216 216 -
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryIdGenerator.java
r30534 r30737 43 43 44 44 // Parse query parameters into a sorted map 45 final Set<String> removeWMSParams = new TreeSet< String>(Arrays.asList(new String[] {45 final Set<String> removeWMSParams = new TreeSet<>(Arrays.asList(new String[] { 46 46 "srs", "width", "height", "bbox", "service", "request", "version", "format", "styles", "transparent" 47 47 })); 48 Map<String, String> qparams = new TreeMap< String, String>();48 Map<String, String> qparams = new TreeMap<>(); 49 49 String[] qparamsStr = query.length() > 1 ? query.substring(1).split("&") : new String[0]; 50 50 for( String param : qparamsStr ) { -
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetPlugin.java
r29430 r30737 43 43 // an ugly hack to add this plugin to the toolbar 44 44 if( Main.pref.getBoolean("iodb.modify.toolbar", true) ) { 45 Collection<String> toolbar = new LinkedList< String>(Main.toolbar.getToolString());45 Collection<String> toolbar = new LinkedList<>(Main.toolbar.getToolString()); 46 46 if( !toolbar.contains("getoffset") ) { 47 47 toolbar.add("getoffset"); -
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetWatcher.java
r29412 r30737 19 19 private static final double THRESHOLD = 1e-8; 20 20 private static ImageryOffsetWatcher instance; 21 private Map<Integer, ImageryLayerData> layers = new TreeMap< Integer, ImageryLayerData>();22 private List<OffsetStateListener> listeners = new ArrayList< OffsetStateListener>();21 private Map<Integer, ImageryLayerData> layers = new TreeMap<>(); 22 private List<OffsetStateListener> listeners = new ArrayList<>(); 23 23 private Timer time; 24 24 private double maxDistance; … … 192 192 if( !Main.pref.getBoolean("iodb.remember.offsets", true) || id == null ) 193 193 return; 194 Collection<String> offsets = new LinkedList< String>(Main.pref.getCollection("iodb.stored.offsets"));194 Collection<String> offsets = new LinkedList<>(Main.pref.getCollection("iodb.stored.offsets")); 195 195 for( Iterator<String> iter = offsets.iterator(); iter.hasNext(); ) { 196 196 String[] offset = iter.next().split(":"); -
applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialog.java
r29412 r30737 137 137 boolean showCalibration = Main.pref.getBoolean(PREF_CALIBRATION, true); 138 138 boolean showDeprecated = Main.pref.getBoolean(PREF_DEPRECATED, false); 139 List<ImageryOffsetBase> filteredOffsets = new ArrayList< ImageryOffsetBase>();139 List<ImageryOffsetBase> filteredOffsets = new ArrayList<>(); 140 140 for( ImageryOffsetBase offset : offsets ) { 141 141 if( offset.isDeprecated() && !showDeprecated ) -
applications/editors/josm/plugins/imagery_offset_db/src/iodb/StoreImageryOffsetAction.java
r29430 r30737 106 106 // upload object info to server 107 107 try { 108 Map<String, String> params = new HashMap< String, String>();108 Map<String, String> params = new HashMap<>(); 109 109 offsetObj.putServerParams(params); 110 110 StringBuilder query = null;
Note:
See TracChangeset
for help on using the changeset viewer.