Class SessionLoadAction.Loader

    • Constructor Detail

      • Loader

        public Loader​(java.io.File file,
                      boolean zip)
        Constructs a new Loader for local session file.
        Parameters:
        file - The JOSM session file
        zip - true if the file is a session archive file (*.joz)
      • Loader

        public 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).
        Parameters:
        is - The input stream to session file
        uri - The file URI
        zip - true if the file is a session archive file (*.joz)
        Since:
        6245
    • Method Detail

      • finish

        protected void finish()
        Description copied from class: PleaseWaitRunnable
        Finish up the data work. Is guaranteed to be called if realRun is called. Finish is called in the gui thread just after the dialog disappeared.
        Specified by:
        finish in class PleaseWaitRunnable
      • addLayer

        static boolean addLayer​(Layer l)
        Tries to add a new layer.
        Parameters:
        l - layer to add
        Returns:
        true if layer has been added, false if it wasn't needed or if an error occurred
      • realRun

        protected void realRun()
        Description copied from class: PleaseWaitRunnable
        Called in the worker thread to do the actual work. When any of the exception is thrown, a message box will be displayed and closeDialog is called. finish() is called in any case.
        Specified by:
        realRun in class PleaseWaitRunnable
      • handleException

        private void handleException​(java.lang.String dialogTitle,
                                     java.lang.Exception e)