Package org.locationtech.udig.browser

Examples of org.locationtech.udig.browser.ExternalCatalogueImportURLDescriptor


            try {
                url = new URL(childs[0].getAttribute("url")); //$NON-NLS-1$
            } catch(MalformedURLException ex) {
                return;
            }
            ExternalCatalogueImportURLDescriptor d =
                    new ExternalCatalogueImportURLDescriptor(url);
            d.setLabel(element.getAttribute("name")); //$NON-NLS-1$
            d.setID(element.getAttribute("id")); //$NON-NLS-1$
            d.setDescription(element.getAttribute("description")); //$NON-NLS-1$
            d.setListener(element.getAttribute("listener")); //$NON-NLS-1$
            d.setViewName(element.getAttribute("viewName")); //$NON-NLS-1$
            String ns = element.getNamespace();
            String banner = element.getAttribute("image"); //$NON-NLS-1$
           
            if (banner != null)
                d.setDescriptionImage(
                        AbstractUIPlugin.imageDescriptorFromPlugin(ns,banner));
           
            banner = element.getAttribute("icon"); //$NON-NLS-1$
           
            if (banner != null)
                d.setIcon(
                        AbstractUIPlugin.imageDescriptorFromPlugin(ns,banner));
            this.descriptors.add(d);
        }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.browser.ExternalCatalogueImportURLDescriptor

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.