public static class SessionLoadAction.Loader extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private Layer |
active |
private boolean |
canceled |
private java.io.File |
file |
private java.io.InputStream |
is |
private java.util.List<Layer> |
layers |
private java.util.List<java.lang.Runnable> |
postLoadTasks |
private java.net.URI |
uri |
private ViewportData |
viewport |
private boolean |
zip |
progressMonitor| Constructor and Description |
|---|
Loader(java.io.File file,
boolean zip)
Constructs a new
Loader for local session file. |
Loader(java.io.InputStream is,
java.net.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(java.lang.String dialogTitle,
java.lang.Exception e) |
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate boolean canceled
private java.io.File file
private final java.net.URI uri
private final java.io.InputStream is
private final boolean zip
private java.util.List<java.lang.Runnable> postLoadTasks
private ViewportData viewport
public Loader(java.io.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(java.io.InputStream is, java.net.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(java.lang.String dialogTitle, java.lang.Exception e)