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 |
---|
SessionLoadAction.Loader(java.io.File file,
boolean zip)
Constructs a new
Loader for local session file. |
SessionLoadAction.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, run
private 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 SessionLoadAction.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 SessionLoadAction.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()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void realRun()
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
private void handleException(java.lang.String dialogTitle, java.lang.Exception e)