class UploadSelectionAction.DeletedParentsChecker extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private Exception |
lastException |
private OsmDataLayer |
layer |
private OsmServerBackreferenceReader |
reader |
private Collection<OsmPrimitive> |
toUpload |
progressMonitor| Constructor and Description |
|---|
DeletedParentsChecker(OsmDataLayer layer,
Collection<OsmPrimitive> toUpload) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
protected Set<OsmPrimitive> |
getPrimitivesToCheckForParents()
Replies the collection of deleted OSM primitives for which we have to check whether
there are dangling references on the server.
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate boolean canceled
private Exception lastException
private final Collection<OsmPrimitive> toUpload
private final OsmDataLayer layer
private OsmServerBackreferenceReader reader
DeletedParentsChecker(OsmDataLayer layer, Collection<OsmPrimitive> toUpload)
layer - the data layer for which a collection of selected primitives is uploadedtoUpload - the collection of primitives to uploadprotected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected Set<OsmPrimitive> getPrimitivesToCheckForParents()
protected void realRun() throws SAXException, IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableSAXException - if a SAX error occursIOException - if an I/O error occursOsmTransferException - if a communication error with the OSM server occurs