Examples of canAdapt()


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

        String targetTypeName = targetClass.getName();
        IResolveAdapterFactory factory = available.get(targetTypeName);
        if (factory != null){
            // we found a factory directly responsible for this connection
            try {
                return factory.canAdapt(resolve, targetClass);
            } catch (Throwable t) {
                String msg = "IResolveAdapterFactory " + factory.getClass().getName()
                        + " canAdapt check failed:" + t;
                CatalogPlugin.trace(msg, t);
                return false; // factory was unable to function
View Full Code Here

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

          if( isResolvableType( element, resolve ) &&
            isTargetTypeSupported(element, adapter)){
            // Use the extension point information as a quick sanity check to ensure
            // the factory is relevant to the problem at hand
            IResolveAdapterFactory factory = getResolveAdapterFactory( entry );
            if( factory.canAdapt( resolve, adapter) ){
              return true;
            }
          }
        }
        catch( RuntimeException ignore ){
View Full Code Here

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

        try {
          Set<Class<?>> ignoreSet = exceptions.get(factory);
          if( ignoreSet != null && ignoreSet.contains(adapter) ){
            continue; // skip this as it is listed as an exception
          }
          if( factory.canAdapt( resolve, adapter)){
            return true;
          }
        }
        catch( RuntimeException ignore ){
          // problem encountered with factory; depending
View Full Code Here

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

            if( isResolvableType( element, resolve ) &&
              isTargetTypeSupported(element, adapter)){
              // Use the extension point information as a quick sanity check to ensure
              // 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 );
View Full Code Here

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

            Set<Class<?>> ignoreSet = exceptions.get(factory);
            if( ignoreSet != null && ignoreSet.contains(adapter) ){
              monitor.worked(10);
              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 );
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.