class SourceEditor.SourceLoader extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
private boolean |
canceled |
private java.io.BufferedReader |
reader |
private java.util.List<SourceProvider> |
sourceProviders |
private java.util.List<SourceEditor.ExtendedSourceEntry> |
sources |
private java.lang.String |
url |
progressMonitor
Constructor and Description |
---|
SourceLoader(java.lang.String url,
java.util.List<SourceProvider> sourceProviders) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
protected void |
warn(java.lang.Exception e) |
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
private final java.lang.String url
private final java.util.List<SourceProvider> sourceProviders
private java.io.BufferedReader reader
private boolean canceled
private final java.util.List<SourceEditor.ExtendedSourceEntry> sources
SourceLoader(java.lang.String url, java.util.List<SourceProvider> sourceProviders)
protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void warn(java.lang.Exception e)
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
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 occursprotected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable