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, runprivate 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()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableorg.xml.sax.SAXExceptionjava.io.IOExceptionOsmTransferException