Changeset 12846 in josm for trunk/src/org/openstreetmap/josm/actions/SearchNotesDownloadAction.java
- Timestamp:
- 2017-09-13T23:24:50+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SearchNotesDownloadAction.java
r12841 r12846 22 22 import org.openstreetmap.josm.gui.widgets.HistoryComboBox; 23 23 import org.openstreetmap.josm.io.OsmApi; 24 import org.openstreetmap.josm.spi.preferences.Config; 24 25 import org.openstreetmap.josm.tools.Logging; 25 26 import org.openstreetmap.josm.tools.Utils; … … 41 42 public void actionPerformed(ActionEvent e) { 42 43 HistoryComboBox searchTermBox = new HistoryComboBox(); 43 List<String> searchHistory = new LinkedList<>( Main.pref.getList(HISTORY_KEY, new LinkedList<String>()));44 List<String> searchHistory = new LinkedList<>(Config.getPref().getList(HISTORY_KEY, new LinkedList<String>())); 44 45 Collections.reverse(searchHistory); 45 46 searchTermBox.setPossibleItems(searchHistory); … … 70 71 71 72 searchTermBox.addCurrentItemToHistory(); 72 Main.pref.putList(HISTORY_KEY, searchTermBox.getHistory());73 Config.getPref().putList(HISTORY_KEY, searchTermBox.getHistory()); 73 74 74 75 performSearch(searchTerm); … … 91 92 } 92 93 93 int noteLimit = Main.pref.getInt("osm.notes.downloadLimit", 1000);94 int closedLimit = Main.pref.getInt("osm.notes.daysClosed", 7);94 int noteLimit = Config.getPref().getInt("osm.notes.downloadLimit", 1000); 95 int closedLimit = Config.getPref().getInt("osm.notes.daysClosed", 7); 95 96 96 97 StringBuilder sb = new StringBuilder(128);
Note:
See TracChangeset
for help on using the changeset viewer.