class UploadSelectionAction.DeletedParentsChecker extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private java.lang.Exception |
lastException |
private OsmDataLayer |
layer |
private OsmServerBackreferenceReader |
reader |
private java.util.Collection<OsmPrimitive> |
toUpload |
progressMonitor| Constructor and Description |
|---|
DeletedParentsChecker(OsmDataLayer layer,
java.util.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 java.util.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 java.lang.Exception lastException
private final java.util.Collection<OsmPrimitive> toUpload
private final OsmDataLayer layer
private OsmServerBackreferenceReader reader
DeletedParentsChecker(OsmDataLayer layer, java.util.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 java.util.Set<OsmPrimitive> getPrimitivesToCheckForParents()
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 occurs