Changeset 35846 in osm
- Timestamp:
- 2021-11-04T16:15:18+01:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/reverter
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/build.xml
r35732 r35846 4 4 <property name="commit.message" value="Reverter: fix deleted/redacted relation members"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 7717"/>6 <property name="plugin.main.version" value="18173"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/reverter/src/reverter/ChangesetIdQuery.java
r35499 r35846 10 10 import java.awt.event.WindowEvent; 11 11 import java.util.Collection; 12 import java.util.Collections;13 import java.util.LinkedList;14 import java.util.List;15 12 16 13 import javax.swing.ButtonGroup; … … 158 155 */ 159 156 protected void restoreChangesetsHistory(HistoryComboBox cbHistory) { 160 List<String> cmtHistory = new LinkedList<>( 161 Config.getPref().getList(getClass().getName() + ".changesetsHistory", new LinkedList<String>())); 162 // we have to reverse the history, because ComboBoxHistory will reverse it again in addElement() 163 Collections.reverse(cmtHistory); 164 cbHistory.setPossibleItems(cmtHistory); 157 cbHistory.getModel().prefs().load(getClass().getName() + ".changesetsHistory"); 165 158 } 166 159 … … 171 164 protected void remindChangesetsHistory(HistoryComboBox cbHistory) { 172 165 cbHistory.addCurrentItemToHistory(); 173 Config.getPref().putList(getClass().getName() + ".changesetsHistory", cbHistory.getHistory());166 cbHistory.getModel().prefs().save(getClass().getName() + ".changesetsHistory"); 174 167 } 175 168 -
applications/editors/josm/plugins/reverter/src/reverter/ChangesetIdsTextField.java
r34946 r35846 36 36 37 37 /** 38 * Return sorted changeset IDs (highest ID first). 38 39 * @return sorted changeset IDs (highest ID first) 39 40 */ -
applications/editors/josm/plugins/reverter/src/reverter/ChangesetReverter.java
r35732 r35846 512 512 if (!history.isEmpty()) { 513 513 Node historyNode = (Node) history.allPrimitives().iterator().next(); 514 if (historyNode.isLatLonKnown() && changeset.getClosedAt(). toEpochMilli() >historyNode.getTimestamp().getTime()) {514 if (historyNode.isLatLonKnown() && changeset.getClosedAt().isAfter(historyNode.getInstant())) { 515 515 n.load(historyNode.save()); 516 516 break;
Note:
See TracChangeset
for help on using the changeset viewer.