Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.IResolveAdapterFactory.adapt()


       
        Map<String, IResolveAdapterFactory> available = getFactories(resolve.getClass());
        IResolveAdapterFactory factory = available.get(targetTypeName);
        if (factory != null) {
            // we found a factory directly responsible for this connection
            T connected = factory.adapt(resolve, targetClass, monitor);
            return connected;
        }
        else {
            List<IResolveAdapterFactory> genericFactories = factories.get(null);
            for( IResolveAdapterFactory fallback : genericFactories ){
View Full Code Here


              // the factory is relevant to the problem at hand
              IResolveAdapterFactory factory = getResolveAdapterFactory( entry );
              if( factory.canAdapt( resolve, adapter)){
                // we think we can do this one...
                IProgressMonitor subMonitor = SubMonitor.convert(monitor, factory.getClass().getCanonicalName(), 10 );
              Object value = factory.adapt( resolve, adapter, subMonitor );
              if( value != null ){
                return adapter.cast( value );
              }
              }
              else {
View Full Code Here

              continue; // skip this as it is listed as an exception
            }
            if( factory.canAdapt( resolve, adapter)){
              // we think we can do this one...
              IProgressMonitor subMonitor = SubMonitor.convert(monitor, factory.getClass().getCanonicalName(), 10 );
            Object value = factory.adapt( resolve, adapter, subMonitor );
            if( value != null ){
              return adapter.cast( value );
            }
            }
            else {
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.