Changeset 32912 in osm for applications/editors/josm/plugins/lakewalker/src
- Timestamp:
- 2016-09-03T17:01:47+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/BooleanConfigurer.java
r32676 r32912 65 65 box.setSelected(booleanValue().booleanValue()); 66 66 box.addItemListener(new java.awt.event.ItemListener() { 67 @Override 67 68 public void itemStateChanged(java.awt.event.ItemEvent e) { 68 69 setValue(box.isSelected()); -
applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/DoubleConfigurer.java
r32676 r32912 12 12 13 13 public DoubleConfigurer(String key, String name) { 14 this(key, name, new Double(0));14 this(key, name, 0d); 15 15 } 16 16 -
applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerAction.java
r32676 r32912 58 58 } 59 59 60 @Override 60 61 public void actionPerformed(ActionEvent e) { 61 62 if (Main.map == null || Main.map.mapView == null || active) … … 83 84 84 85 // sort files by date (most recent first) 85 Arrays.sort(wmsCache, new Comparator<File>() { 86 public int compare(File f1, File f2) { 87 return (int) (f2.lastModified()-f1.lastModified()); 88 } 89 }); 86 Arrays.sort(wmsCache, Comparator.comparingLong(File::lastModified)); 90 87 91 88 // delete aged or oversized, keep newest. Once size/age limit was reached delete all older files … … 296 293 } 297 294 295 @Override 298 296 public void mouseClicked(MouseEvent e) { 299 297 if (active) { … … 305 303 } 306 304 305 @Override 307 306 public void mouseEntered(MouseEvent e) { 308 307 } 309 308 309 @Override 310 310 public void mouseExited(MouseEvent e) { 311 311 } 312 312 313 @Override 313 314 public void mousePressed(MouseEvent e) { 314 315 } 315 316 317 @Override 316 318 public void mouseReleased(MouseEvent e) { 317 319 } -
applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerPreferences.java
r32676 r32912 73 73 } 74 74 75 @Override 75 76 public void addGui(PreferenceTabbedPane gui) { 77 //CHECKSTYLE.OFF: LineLength 76 78 maxSegsConfig.setToolTipText(tr("Maximum number of segments allowed in each generated way. Default 250.")); 77 79 maxNodesConfig.setToolTipText(tr("Maximum number of nodes to generate before bailing out (before simplifying lines). Default 50000.")); … … 88 90 maxCacheAgeConfig.setToolTipText(tr("Maximum age of each cached file in days. Default is 100")); 89 91 sourceConfig.setToolTipText(tr("Data source text. Default is Landsat.")); 92 //CHECKSTYLE.ON: LineLength 90 93 91 94 /*String description =*/ tr("A plugin to trace water bodies on Landsat imagery."); … … 148 151 * Save entered preference values on OK button 149 152 */ 153 @Override 150 154 public boolean ok() { 151 155 Main.pref.put(PREF_MAX_SEG, maxSegsConfig.getValueString()); -
applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/StringEnumConfigurer.java
r32676 r32912 50 50 setValue(value); 51 51 box.addActionListener(new ActionListener() { 52 @Override 52 53 public void actionPerformed(ActionEvent e) { 53 54 noUpdate = true;
Note:
See TracChangeset
for help on using the changeset viewer.