class SourceEditor.SourceLoader extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
private boolean |
canceled |
private BufferedReader |
reader |
private List<SourceProvider> |
sourceProviders |
private List<SourceEditor.ExtendedSourceEntry> |
sources |
private String |
url |
progressMonitor
Constructor and Description |
---|
SourceLoader(String url,
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(Exception e) |
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
private final List<SourceProvider> sourceProviders
private BufferedReader reader
private boolean canceled
private final List<SourceEditor.ExtendedSourceEntry> sources
SourceLoader(String url, List<SourceProvider> sourceProviders)
protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void realRun() throws SAXException, IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
SAXException
- if a SAX error occursIOException
- if an I/O error occursOsmTransferException
- if a communication error with the OSM server occursprotected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable