Changeset 6654 in josm for trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
- Timestamp:
- 2014-01-06T21:46:07+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r6631 r6654 590 590 } 591 591 592 p ublic String getLastChangesetCommentFromHistory() {593 Collection<String> history = Main.pref.getCollection( BasicUploadSettingsPanel.HISTORY_KEY, new ArrayList<String>());592 private String getLastChangesetTagFromHistory(String historyKey) { 593 Collection<String> history = Main.pref.getCollection(historyKey, new ArrayList<String>()); 594 594 int age = (int) (System.currentTimeMillis() / 1000 - Main.pref.getInteger(BasicUploadSettingsPanel.HISTORY_LAST_USED_KEY, 0)); 595 595 if (age < Main.pref.getInteger(BasicUploadSettingsPanel.HISTORY_MAX_AGE_KEY, 4 * 3600 * 1000) && history != null && !history.isEmpty()) { … … 599 599 } 600 600 } 601 602 public String getLastChangesetCommentFromHistory() { 603 return getLastChangesetTagFromHistory(BasicUploadSettingsPanel.HISTORY_KEY); 604 } 605 606 public String getLastChangesetSourceFromHistory() { 607 return getLastChangesetTagFromHistory(BasicUploadSettingsPanel.SOURCE_HISTORY_KEY); 608 } 601 609 }
Note:
See TracChangeset
for help on using the changeset viewer.