public class CloseChangesetTask extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
private boolean |
canceled |
private java.util.Collection<Changeset> |
changesets |
private java.util.List<Changeset> |
closedChangesets |
private java.lang.Exception |
lastException |
progressMonitor
Constructor and Description |
---|
CloseChangesetTask(java.util.Collection<Changeset> changesets)
Closes all changesets in
changesets if they are not null, if they
are still open and if they have an id > 0. |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
private boolean canceled
private java.lang.Exception lastException
private java.util.Collection<Changeset> changesets
private java.util.List<Changeset> closedChangesets
public CloseChangesetTask(java.util.Collection<Changeset> changesets)
changesets
if they are not null, if they
are still open and if they have an id > 0. Other changesets in the collection
are ignored.changesets
- the collection of changesets. Empty collection assumes, if null.protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
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