private class UploadNotesTask.UploadTask extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<Note,java.lang.Exception> |
failedNotes |
private boolean |
isCanceled |
(package private) java.util.Map<Note,Note> |
updatedNotes |
progressMonitor
Constructor and Description |
---|
UploadNotesTask.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, run
private boolean isCanceled
java.util.Map<Note,Note> updatedNotes
java.util.Map<Note,java.lang.Exception> failedNotes
public UploadNotesTask.UploadTask(java.lang.String title, ProgressMonitor monitor)
UploadTask
.title
- message for the usermonitor
- progress monitorprotected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
org.xml.sax.SAXException
java.io.IOException
OsmTransferException
private void processNoteComment(ProgressMonitor monitor, OsmApi api, Note note, NoteComment comment)
protected void finish()
finish
in class PleaseWaitRunnable