Changeset 32912 in osm for applications/editors/josm
- Timestamp:
- 2016-09-03T17:01:47+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/lakewalker
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/lakewalker/.settings/org.eclipse.jdt.ui.prefs
r19624 r32912 1 #Sun Jan 24 21:18:20 CET 20102 1 eclipse.preferences.version=1 3 2 editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true … … 9 8 sp_cleanup.add_missing_nls_tags=false 10 9 sp_cleanup.add_missing_override_annotations=true 10 sp_cleanup.add_missing_override_annotations_interface_methods=true 11 11 sp_cleanup.add_serial_version_id=false 12 12 sp_cleanup.always_use_blocks=true … … 14 14 sp_cleanup.always_use_this_for_non_static_field_access=false 15 15 sp_cleanup.always_use_this_for_non_static_method_access=false 16 sp_cleanup.convert_functional_interfaces=false 16 17 sp_cleanup.convert_to_enhanced_for_loop=false 17 18 sp_cleanup.correct_indentation=false 18 19 sp_cleanup.format_source_code=false 19 20 sp_cleanup.format_source_code_changes_only=false 21 sp_cleanup.insert_inferred_type_arguments=false 20 22 sp_cleanup.make_local_variable_final=false 21 23 sp_cleanup.make_parameters_final=false … … 33 35 sp_cleanup.qualify_static_method_accesses_with_declaring_class=false 34 36 sp_cleanup.remove_private_constructors=true 37 sp_cleanup.remove_redundant_type_arguments=true 35 38 sp_cleanup.remove_trailing_whitespaces=true 36 39 sp_cleanup.remove_trailing_whitespaces_all=true … … 38 41 sp_cleanup.remove_unnecessary_casts=true 39 42 sp_cleanup.remove_unnecessary_nls_tags=false 40 sp_cleanup.remove_unused_imports= false43 sp_cleanup.remove_unused_imports=true 41 44 sp_cleanup.remove_unused_local_variables=false 42 45 sp_cleanup.remove_unused_private_fields=true … … 46 49 sp_cleanup.sort_members=false 47 50 sp_cleanup.sort_members_all=false 51 sp_cleanup.use_anonymous_class_creation=false 48 52 sp_cleanup.use_blocks=false 49 53 sp_cleanup.use_blocks_only_for_return_and_throw=false 54 sp_cleanup.use_lambda=false 50 55 sp_cleanup.use_parentheses_in_expressions=false 51 56 sp_cleanup.use_this_for_non_static_field_access=false -
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.