Class ChildRelationBrowser.DownloadAllChildrenTask
java.lang.Object
org.openstreetmap.josm.gui.PleaseWaitRunnable
org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.DownloadTask
org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.DownloadAllChildrenTask
- All Implemented Interfaces:
Runnable,ProgressMonitor.CancelListener
- Enclosing class:
- ChildRelationBrowser
The asynchronous task for downloading relation members.
-
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.DownloadTask
canceled, conflictsCount, lastException, readerFields inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
progressMonitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrealRun()Called in the worker thread to do the actual work.protected voidwarns the user if a relation couldn't be loaded because it was deleted on the server (the server replied a HTTP code 410)Methods inherited from class org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.DownloadTask
cancel, createReader, finish, mergeDataSet, refreshViewMethods inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
-
Field Details
-
relation
-
-
Constructor Details
-
DownloadAllChildrenTask
DownloadAllChildrenTask(Dialog parent, Relation r)
-
-
Method Details
-
warnBecauseOfDeletedRelation
warns the user if a relation couldn't be loaded because it was deleted on the server (the server replied a HTTP code 410)- Parameters:
r- the relation
-
realRun
Description copied from class:PleaseWaitRunnableCalled in the worker thread to do the actual work. When any of the exception is thrown, a message box will be displayed and closeDialog is called. finish() is called in any case.- Specified by:
realRunin classPleaseWaitRunnable- Throws:
SAXException- if a SAX error occursIOException- if an I/O error occursOsmTransferException- if a communication error with the OSM server occurs
-