Class DownloadOsmChangeTask.HistoryLoaderAndListener
- java.lang.Object
-
- org.openstreetmap.josm.gui.PleaseWaitRunnable
-
- org.openstreetmap.josm.gui.history.HistoryLoadTask
-
- org.openstreetmap.josm.actions.downloadtasks.DownloadOsmChangeTask.HistoryLoaderAndListener
-
- All Implemented Interfaces:
Runnable
,HistoryDataSetListener
,ProgressMonitor.CancelListener
- Enclosing class:
- DownloadOsmChangeTask
private static final class DownloadOsmChangeTask.HistoryLoaderAndListener extends HistoryLoadTask implements HistoryDataSetListener
Loads history and updates incomplete primitives.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<OsmPrimitive,Instant>
toLoad
-
Fields inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
progressMonitor
-
-
Constructor Summary
Constructors Modifier Constructor Description private
HistoryLoaderAndListener(Map<OsmPrimitive,Instant> toLoad)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
historyDataSetCleared(HistoryDataSet source)
Fired by aHistoryDataSet
if the history cached is cleared.void
historyUpdated(HistoryDataSet source, PrimitiveId id)
Fired by aHistoryDataSet
if the cached history of an OSM primitive with idid
is updated-
Methods inherited from class org.openstreetmap.josm.gui.history.HistoryLoadTask
add, add, add, add, addOsmPrimitives, addPrimitiveIds, cancel, finish, getLastException, getLoadingMessage, getMissingPrimitives, isCanceled, loadHistory, realRun, setChangesetDataNeeded, setCollectMissing
-
Methods inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
-
-
-
-
Field Detail
-
toLoad
private final Map<OsmPrimitive,Instant> toLoad
-
-
Constructor Detail
-
HistoryLoaderAndListener
private HistoryLoaderAndListener(Map<OsmPrimitive,Instant> toLoad)
-
-
Method Detail
-
historyUpdated
public void historyUpdated(HistoryDataSet source, PrimitiveId id)
Description copied from interface:HistoryDataSetListener
Fired by aHistoryDataSet
if the cached history of an OSM primitive with idid
is updated- Specified by:
historyUpdated
in interfaceHistoryDataSetListener
- Parameters:
source
- the data set firing the eventid
- the id of the updated primitive
-
historyDataSetCleared
public void historyDataSetCleared(HistoryDataSet source)
Description copied from interface:HistoryDataSetListener
Fired by aHistoryDataSet
if the history cached is cleared.- Specified by:
historyDataSetCleared
in interfaceHistoryDataSetListener
- Parameters:
source
- the history data set firing the event
-
-