org.openstreetmap.josm.actions.downloadtasks
Class DownloadOsmTask.DownloadTask
java.lang.Object
org.openstreetmap.josm.gui.PleaseWaitRunnable
org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask.DownloadTask
- All Implemented Interfaces:
- java.lang.Runnable, ProgressMonitor.CancelListener
- Direct Known Subclasses:
- DownloadOsmChangeTask.DownloadTask
- Enclosing class:
- DownloadOsmTask
protected class DownloadOsmTask.DownloadTask
- extends PleaseWaitRunnable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
protected OsmServerReader reader
dataSet
protected DataSet dataSet
newLayer
protected boolean newLayer
DownloadOsmTask.DownloadTask
public DownloadOsmTask.DownloadTask(boolean newLayer,
OsmServerReader reader,
ProgressMonitor progressMonitor)
parseDataSet
protected DataSet parseDataSet()
throws OsmTransferException
- Throws:
OsmTransferException
realRun
public void realRun()
throws java.io.IOException,
org.xml.sax.SAXException,
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 class PleaseWaitRunnable
- Throws:
java.io.IOException
org.xml.sax.SAXException
OsmTransferException
getEditLayer
protected OsmDataLayer getEditLayer()
getNumDataLayers
protected int getNumDataLayers()
getFirstDataLayer
protected OsmDataLayer getFirstDataLayer()
createNewLayer
protected OsmDataLayer createNewLayer(java.lang.String layerName)
createNewLayer
protected OsmDataLayer createNewLayer()
finish
protected void finish()
- Description copied from class:
PleaseWaitRunnable
- Finish up the data work. Is guaranteed to be called if realRun is called.
Finish is called in the gui thread just after the dialog disappeared.
- Specified by:
finish
in class PleaseWaitRunnable
computeBboxAndCenterScale
protected void computeBboxAndCenterScale()
cancel
protected void cancel()
- Description copied from class:
PleaseWaitRunnable
- User pressed cancel button.
- Specified by:
cancel
in class PleaseWaitRunnable
suggestImageryLayers
protected void suggestImageryLayers()
JOSM