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 |
---|
UploadSelectionAction.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, run
private boolean canceled
private Exception lastException
private Collection<OsmPrimitive> toUpload
private OsmDataLayer layer
private OsmServerBackreferenceReader reader
public UploadSelectionAction.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()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected Set<OsmPrimitive> getPrimitivesToCheckForParents()
protected void realRun() throws SAXException, IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
SAXException
IOException
OsmTransferException