Class ChildRelationBrowser.DownloadRelationSetTask
- java.lang.Object
-
- org.openstreetmap.josm.gui.PleaseWaitRunnable
-
- org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.DownloadTask
-
- org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.DownloadRelationSetTask
-
- All Implemented Interfaces:
java.lang.Runnable
,ProgressMonitor.CancelListener
- Enclosing class:
- ChildRelationBrowser
class ChildRelationBrowser.DownloadRelationSetTask extends ChildRelationBrowser.DownloadTask
The asynchronous task for downloading a set of relations
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<Relation>
relations
-
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 DownloadRelationSetTask(java.awt.Dialog parent, java.util.Set<Relation> relations)
-
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.-
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
-
DownloadRelationSetTask
DownloadRelationSetTask(java.awt.Dialog parent, java.util.Set<Relation> relations)
-
-
Method Detail
-
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
-
-