Package org.openstreetmap.josm.actions.SessionLoadAction

Examples of org.openstreetmap.josm.actions.SessionLoadAction.Loader


    @Override
    public Future<?> loadUrl(boolean newLayer, String url, ProgressMonitor progressMonitor) {
        if (url != null && (url.matches(PATTERN_SESSION))) {
            try {
                URL u = new URL(url);
                loader = new Loader(Utils.openURL(u), u.toURI(), url.endsWith(".joz"));
                return Main.worker.submit(loader);
            } catch (URISyntaxException | IOException e) {
                Main.error(e);
            }
        }
View Full Code Here


    }

    @Override
    public void importData(File file, ProgressMonitor progressMonitor) throws IOException, IllegalDataException {
        boolean zip = file.getName().toLowerCase().endsWith(".joz");
        Main.worker.submit(new Loader(file, zip));
    }
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.actions.SessionLoadAction.Loader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.