Package org.locationtech.udig.catalog.ui

Examples of org.locationtech.udig.catalog.ui.UDIGConnectionFactory.canProcess()


        descriptor = null;
        shortlist = new ArrayList<UDIGConnectionFactoryDescriptor>();
        for( UDIGConnectionFactoryDescriptor d : descriptors ) {
            UDIGConnectionFactory factory = d.getConnectionFactory();
            try {
                if (factory.canProcess(context)) {
                    shortlist.add( d );
                }
            } catch (Throwable t) {
                // log and keep going
                CatalogPlugin.trace("Factory "+d.getId()+" unable to handle "+context, t);
View Full Code Here


                if (!"factory".equals(element.getName())) //$NON-NLS-1$
                    return;
                UDIGConnectionFactory factory = (UDIGConnectionFactory) element
                        .createExecutableExtension("class"); //$NON-NLS-1$

                if (factory.canProcess(data)) {
                    // get the id
                    IConfigurationElement[] elements = extension.getConfigurationElements();
                    for( int i = 0; i < elements.length; i++ ) {
                        if( elements[i].getAttribute("id") != null){
                            ids.add(elements[i].getAttribute("id")); //$NON-NLS-1$
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.