Package org.locationtech.udig.catalog.ui

Examples of org.locationtech.udig.catalog.ui.UDIGConnectionFactory


       
        // determine if any connection factory can process the context object
        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


        public void process( IExtension extension, IConfigurationElement element ) throws Exception {

            try {
                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

Related Classes of org.locationtech.udig.catalog.ui.UDIGConnectionFactory

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.