class ChildRelationBrowser.DownloadAllChildrenTask extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
private boolean |
canceled |
private int |
conflictsCount |
private Set<Long> |
downloadedRelationIds |
private Exception |
lastException |
private Relation |
relation |
private Stack<Relation> |
relationsToDownload |
progressMonitor
Constructor and Description |
---|
DownloadAllChildrenTask(Dialog parent,
Relation r) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
protected void |
mergeDataSet(DataSet ds)
Merges the primitives in
ds to the dataset of the
edit layer |
protected void |
realRun()
Called in the worker thread to do the actual work.
|
protected void |
refreshView(Relation relation) |
protected void |
rememberChildRelationsToDownload(Relation parent)
Remembers the child relations to download
|
protected void |
warnBecauseOfDeletedRelation(Relation r)
warns the user if a relation couldn't be loaded because it was deleted on
the server (the server replied a HTTP code 410)
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
private boolean canceled
private int conflictsCount
private Exception lastException
private Stack<Relation> relationsToDownload
private Set<Long> downloadedRelationIds
public DownloadAllChildrenTask(Dialog parent, Relation r)
protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void refreshView(Relation relation)
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void warnBecauseOfDeletedRelation(Relation r)
r
- the relationprotected void rememberChildRelationsToDownload(Relation parent)
parent
- the parent relationprotected void mergeDataSet(DataSet ds)
ds
to the dataset of the
edit layerds
- the data setprotected void realRun() throws SAXException, IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
SAXException
IOException
OsmTransferException