class SourceEditor.SourceLoader extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private CachedFile |
cachedFile |
private boolean |
canceled |
private java.util.List<SourceProvider> |
sourceProviders |
private java.util.List<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 |
readFile() |
protected void |
realRun()
Called in the worker thread to do the actual work.
|
protected void |
warn(java.lang.Exception e) |
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate final java.lang.String url
private final java.util.List<SourceProvider> sourceProviders
private CachedFile cachedFile
private boolean canceled
private final java.util.List<ExtendedSourceEntry> sources
SourceLoader(java.lang.String url, java.util.List<SourceProvider> sourceProviders)
protected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void warn(java.lang.Exception e)
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableorg.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 readFile() throws java.io.IOException
java.io.IOExceptionprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnable