protected class DownloadOsmTask.DownloadTask extends DownloadOsmTask.AbstractInternalTask
Modifier and Type | Field and Description |
---|---|
protected OsmServerReader |
reader |
dataSet, newLayer
progressMonitor
Constructor and Description |
---|
DownloadOsmTask.DownloadTask(boolean newLayer,
OsmServerReader reader,
ProgressMonitor progressMonitor) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
protected DataSet |
parseDataSet() |
void |
realRun()
Called in the worker thread to do the actual work.
|
addNewLayerIfRequired, computeBboxAndCenterScale, createNewLayer, createNewLayer, getEditLayer, getFirstDataLayer, getNumDataLayers, loadData
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
protected final OsmServerReader reader
public DownloadOsmTask.DownloadTask(boolean newLayer, OsmServerReader reader, ProgressMonitor progressMonitor)
protected DataSet parseDataSet() throws OsmTransferException
OsmTransferException
public void realRun() throws java.io.IOException, org.xml.sax.SAXException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
java.io.IOException
org.xml.sax.SAXException
OsmTransferException
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable