- Timestamp:
- 2018-06-18T01:12:03+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/history
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
r13947 r13948 220 220 */ 221 221 public void showHistory(final Collection<? extends PrimitiveId> primitives) { 222 hooks.forEach(h -> h.modifyRequestedIds(primitives)); 223 final Collection<? extends PrimitiveId> notNewPrimitives = SubclassFilteredCollection.filter(primitives, notNewPredicate); 222 final List<PrimitiveId> realPrimitives = new ArrayList<>(primitives); 223 hooks.forEach(h -> h.modifyRequestedIds(realPrimitives)); 224 final Collection<? extends PrimitiveId> notNewPrimitives = SubclassFilteredCollection.filter(realPrimitives, notNewPredicate); 224 225 if (notNewPrimitives.isEmpty()) { 225 226 JOptionPane.showMessageDialog( … … 231 232 } 232 233 233 Collection<? extends PrimitiveId> toLoad = SubclassFilteredCollection.filter( primitives, unloadedHistoryPredicate);234 Collection<? extends PrimitiveId> toLoad = SubclassFilteredCollection.filter(realPrimitives, unloadedHistoryPredicate); 234 235 if (!toLoad.isEmpty()) { 235 236 HistoryLoadTask task = new HistoryLoadTask(); -
trunk/src/org/openstreetmap/josm/gui/history/HistoryHook.java
r13947 r13948 2 2 package org.openstreetmap.josm.gui.history; 3 3 4 import java.util. Collection;4 import java.util.List; 5 5 6 6 import org.openstreetmap.josm.data.osm.PrimitiveId; … … 20 20 * Default implementation is to do no changes. 21 21 * @param ids The current ids to change 22 * @since 13948 22 23 */ 23 default void modifyRequestedIds( Collection<? extendsPrimitiveId> ids) {24 default void modifyRequestedIds(List<PrimitiveId> ids) { 24 25 } 25 26 }
Note:
See TracChangeset
for help on using the changeset viewer.