Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.IService.canResolve()


            for( ILayer layer : layers ) {

                IService service = null;
                try {
                    service = layer.getGeoResource().service(null);
                    if (service.canResolve(ServiceMover.class)) {
                        ServiceMover tmp = service.resolve(ServiceMover.class, null);
                        String msg = tmp.move(projectDataFolder);
                        if (msg != null) {

                            MessageDialog.openError(PlatformUI.getWorkbench().getDisplay()
View Full Code Here


        assertNotNull("canProcess", params );
       
        IService service = serviceExtension.createService( null, params );
        assertNotNull("connected", service );
       
        assertTrue("Datastore available", service.canResolve( DataStore.class));
       
        DataAccess dataStore = service.resolve( DataStore.class, null );
        assertNotNull("DataStore connected", dataStore );
       
        Name typeName = (Name) dataStore.getNames().get(0);;
View Full Code Here

            boolean isFeature = resource.canResolve(FeatureSource.class);
            String iconId = iconInternalResource( resource.getID(), isFeature );
            return CatalogUIPlugin.getDefault().getImage( iconId );
        } else if (resolve instanceof IService) {
            IService service = (IService) resolve;
            boolean isFeature = service.canResolve(DataStore.class);
           
            String iconId = iconInternalService( service.getID(), isFeature );
            return CatalogUIPlugin.getDefault().getImage( iconId );
        } else if (resolve instanceof ICatalog) {
            return CatalogUIPlugin.getDefault().getImage(ISharedImages.CATALOG_OBJ);
View Full Code Here

  private File toShpFile( IResolve resolve ) {
      IGeoResource resource = (IGeoResource) resolve;
        IService service;
        try {
            service = resource.service(new NullProgressMonitor());
        if (service.canResolve(ShapefileDataStore.class)) {
            return service.resolve(File.class, new NullProgressMonitor());
        }
        } catch (IOException e) {
            RasteringsPlugin.log("Error obtaining shapefile file", e); //$NON-NLS-1$
            return null;
View Full Code Here

        IServiceFactory serviceFactory = CatalogPlugin.getDefault().getServiceFactory();
        List<IService> candidates = serviceFactory.createService(url);
        try {
            for( Iterator<IService> i=candidates.iterator(); i.hasNext();){
                IService service = i.next();
                if (service.canResolve(type)) {
                    IService registered = local.add(service);
                    i.remove(); // don't clean this one up
                    return registered.getIdentifier();
                }
            }
View Full Code Here

        if(service == null){
          List<IService> services = CatalogPlugin.getDefault().getServiceFactory().createService(url);
          Iterator<IService> srv = services.iterator();
          while(srv.hasNext()){
            IService s = srv.next();
            if(s.canResolve(WebMapServer.class)){
              service = s;
            }
          }

            if(service == null){
View Full Code Here

          List<IService> services = CatalogPlugin.getDefault().getServiceFactory().createService(url);
          Iterator<IService> srv = services.iterator();
          while(srv.hasNext()){
            IService s = srv.next();
            if(s.canResolve(WFSDataStore.class)){
              service = s;
            }
          }

            if(service == null){
View Full Code Here

        if(service == null){
          List<IService> services = CatalogPlugin.getDefault().getServiceFactory().createService(url);
          Iterator<IService> srv = services.iterator();
          while(srv.hasNext()){
            IService s = srv.next();
            if(s.canResolve(WebMapServer.class)){
              service = s;
            }
          }

            if(service == null){
View Full Code Here

          List<IService> services = CatalogPlugin.getDefault().getServiceFactory().createService(url);
          Iterator<IService> srv = services.iterator();
          while(srv.hasNext()){
            IService s = srv.next();
            if(s.canResolve(WFSDataStore.class)){
              service = s;
            }
          }

            if(service == null){
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.