Changeset 29500 in osm for applications/editors/josm/plugins/FixAddresses/src
- Timestamp:
- 2013-04-14T19:00:55+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/FixAddressesPlugin.java
r28624 r29500 64 64 @Override 65 65 public PreferenceSetting getPreferenceSetting() { 66 // TODO Auto-generated method stub67 66 return getPreferences(); 68 67 } -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/FixAddressesPreferences.java
r27872 r29500 14 14 package org.openstreetmap.josm.plugins.fixAddresses; 15 15 16 import static org.openstreetmap.josm.tools.I18n.tr; 17 16 18 import javax.swing.ButtonGroup; 17 19 import javax.swing.JCheckBox; 18 20 19 21 import org.openstreetmap.josm.Main; 22 import org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting; 20 23 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 21 24 import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory; 22 25 import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane; 23 import static org.openstreetmap.josm.tools.I18n.tr;24 26 25 public class FixAddressesPreferences implementsPreferenceSetting {27 public class FixAddressesPreferences extends DefaultTabPreferenceSetting { 26 28 private static final String FIX_ADDRESSES_IGNORE_POST_CODE_KEY = "fixAddresses.ignorePostCode"; 27 29 private static final String FIX_ADDRESSES_SELECT_GUESSED_OBJECTS_KEY = "fixAddresses.selectGuessedObjects"; … … 51 53 */ 52 54 private void loadFromPrefs() { 53 @SuppressWarnings("unused")54 boolean test = Main.pref.getBoolean(FIX_ADDRESSES_IGNORE_POST_CODE_KEY, false);55 55 setSelectGuessedObjects(Main.pref.getBoolean(FIX_ADDRESSES_SELECT_GUESSED_OBJECTS_KEY, false)); 56 56 setIgnorePostCode(Main.pref.getBoolean(FIX_ADDRESSES_IGNORE_POST_CODE_KEY, false)); … … 82 82 public boolean ok() { 83 83 saveToPrefs(); 84 return true; 84 loadFromPrefs(); 85 return false; 85 86 } 86 87 … … 117 118 cbIgnorePostCode.setSelected(ignorePostCode); 118 119 } 119 120 @Override121 public boolean isExpert() {122 return false;123 }124 125 126 120 } -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/FixUnresolvedStreetsAction.java
r27852 r29500 4 4 5 5 import java.awt.event.ActionEvent; 6 import java.awt.event.InputEvent;7 6 import java.awt.event.KeyEvent; 8 7 import java.util.Collection;
Note:
See TracChangeset
for help on using the changeset viewer.