public static class SessionLoadAction.Loader extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private Layer |
active |
private boolean |
canceled |
private File |
file |
private InputStream |
is |
private List<Layer> |
layers |
private List<Runnable> |
postLoadTasks |
private URI |
uri |
private ViewportData |
viewport |
private boolean |
zip |
progressMonitor| Constructor and Description |
|---|
Loader(File file,
boolean zip)
Constructs a new
Loader for local session file. |
Loader(InputStream is,
URI uri,
boolean zip)
Constructs a new
Loader for session file input stream (may be a remote file). |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
private void |
handleException(String dialogTitle,
Exception e) |
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate boolean canceled
private final InputStream is
private final boolean zip
private List<Runnable> postLoadTasks
private ViewportData viewport
public Loader(File file, boolean zip)
Loader for local session file.file - The JOSM session filezip - true if the file is a session archive file (*.joz)public Loader(InputStream is, URI uri, boolean zip)
Loader for session file input stream (may be a remote file).is - The input stream to session fileuri - The file URIzip - true if the file is a session archive file (*.joz)public void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected void realRun()
PleaseWaitRunnablerealRun in class PleaseWaitRunnableprivate void handleException(String dialogTitle, Exception e)