private class UploadNotesTask.UploadTask extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<Note,java.lang.Exception> |
failedNotes |
private boolean |
isCanceled |
private java.util.Map<Note,Note> |
updatedNotes |
progressMonitor| Constructor and Description |
|---|
UploadTask(java.lang.String title,
ProgressMonitor monitor)
Constructs a new
UploadTask. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Updates the note layer with uploaded notes and notifies the user of any upload failures
|
private void |
processNoteComment(ProgressMonitor monitor,
OsmApi api,
Note note,
NoteComment comment) |
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate boolean isCanceled
private final java.util.Map<Note,Note> updatedNotes
private final java.util.Map<Note,java.lang.Exception> failedNotes
UploadTask(java.lang.String title, ProgressMonitor monitor)
UploadTask.title - message for the usermonitor - progress monitorprotected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected 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 occursprivate void processNoteComment(ProgressMonitor monitor, OsmApi api, Note note, NoteComment comment)
protected void finish()
finish in class PleaseWaitRunnable