class ValidatorDialog.FixTask extends PleaseWaitRunnable
TestErrors. Can be run asynchronously.| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private java.util.List<Command> |
fixCommands |
private java.util.Collection<TestError> |
testErrors |
progressMonitor| Constructor and Description |
|---|
FixTask(java.util.Collection<TestError> testErrors) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
protected void |
fixError(TestError error) |
protected void |
realRun()
Called in the worker thread to do the actual work.
|
private void |
tryUndo()
Undo commands as they were not yet added to the UndoRedo Handler
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate final java.util.Collection<TestError> testErrors
private final java.util.List<Command> fixCommands
private boolean canceled
protected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected void fixError(TestError error) throws java.lang.InterruptedException, java.lang.reflect.InvocationTargetException
java.lang.InterruptedExceptionjava.lang.reflect.InvocationTargetExceptionprotected 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 occursprivate void tryUndo()