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:
java.lang.Runnable
,ProgressMonitor.CancelListener
- Enclosing class:
- ChildRelationBrowser
class ChildRelationBrowser.DownloadAllChildrenTask extends ChildRelationBrowser.DownloadTask
The asynchronous task for downloading relation members.
-
-
Field Summary
Fields Modifier and Type Field Description private Relation
relation
-
Fields inherited from class org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.DownloadTask
canceled, conflictsCount, lastException, reader
-
Fields inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
progressMonitor
-
-
Constructor Summary
Constructors Constructor Description DownloadAllChildrenTask(java.awt.Dialog parent, Relation r)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
realRun()
Called in the worker thread to do the actual work.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)-
Methods inherited from class org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.DownloadTask
cancel, createReader, finish, mergeDataSet, refreshView
-
Methods inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
-
-
-
-
Constructor Detail
-
DownloadAllChildrenTask
DownloadAllChildrenTask(java.awt.Dialog parent, Relation r)
-
-
Method Detail
-
warnBecauseOfDeletedRelation
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)- Parameters:
r
- the relation
-
realRun
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
Description copied from class:PleaseWaitRunnable
Called 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:
realRun
in classPleaseWaitRunnable
- Throws:
org.xml.sax.SAXException
- if a SAX error occursjava.io.IOException
- if an I/O error occursOsmTransferException
- if a communication error with the OSM server occurs
-
-