Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.IResolve.resolve()


        if (context instanceof IResolve) {
            IResolve resolve = (IResolve) context;
            try {
                // what enters should be a JGrassService, which resolves to a
                // folder
                return (resolve.canResolve(File.class) && resolve.resolve(
                        File.class, null).isDirectory());
            } catch (IOException e) {
                throw (RuntimeException) new RuntimeException().initCause(e);
            }
        }
View Full Code Here


        if (context instanceof IResolve) {
            IResolve resolve = (IResolve) context;
            try {
                // what enters should be a JGrassService, which resolves to a
                // folder
                return (resolve.canResolve(File.class) && resolve.resolve(File.class, null).exists()//
                && resolve.resolve(File.class, null).getName().endsWith(".mapurl"));
            } catch (IOException e) {
                throw (RuntimeException) new RuntimeException().initCause(e);
            }
        }
View Full Code Here

            IResolve resolve = (IResolve) context;
            try {
                // what enters should be a JGrassService, which resolves to a
                // folder
                return (resolve.canResolve(File.class) && resolve.resolve(File.class, null).exists()//
                && resolve.resolve(File.class, null).getName().endsWith(".mapurl"));
            } catch (IOException e) {
                throw (RuntimeException) new RuntimeException().initCause(e);
            }
        }
        return false;
View Full Code Here

    for (IService service : services) {
      IResolve resolve;
      IGeoResource geoR;
      try {
        resolve = service.members(null).get(0);
        geoR = resolve.resolve(IGeoResource.class, new NullProgressMonitor());
        return geoR;
      } catch (IOException e) {
        e.printStackTrace();
      }
    }
View Full Code Here

                }
                else if (element instanceof IResolve ){
                    IResolve resolve = (IResolve) element;
                    if( resolve.canResolve( IService.class)){
                        try {
                            IService service = resolve.resolve( IService.class, new NullProgressMonitor() );
                            return new StructuredSelection( service );
                        } catch (IOException e) {
                            return StructuredSelection.EMPTY;
                        }
                    }
View Full Code Here

                    }
                    IResolve resolve = (IResolve) adaptable.getAdapter(IResolve.class);
                    if( resolve != null ){
                        if( resolve.canResolve( IService.class)){
                            try {
                                service = resolve.resolve( IService.class, new NullProgressMonitor() );
                                return new StructuredSelection( service );
                            } catch (IOException e) {
                                return StructuredSelection.EMPTY;
                            }
                        }                       
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.