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, run
private boolean isCanceled
private java.util.Map<Note,Note> updatedNotes
private 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()
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
- 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