Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.IResolve


*/
public class WWConnectionFactory extends UDIGConnectionFactory {

  public boolean canProcess(Object context) {
    if(context instanceof IResolve){
           IResolve resolve = (IResolve) context;
           return resolve.canResolve(LayerSet.class);
       }
       return toWWConfigURL(context) != null;       
  }
View Full Code Here


    /**
     * Determines if a particular context can become a WMSC Service
     */
    public boolean canProcess(Object context) {
        if( context instanceof IResolve ){
          IResolve resolve = (IResolve) context;
          return resolve.canResolve( TiledWebMapServer.class );
      }
      return toCapabilitiesURL(context) != null;       
   }
View Full Code Here

*/
public class JGrassConnectionFactory extends UDIGConnectionFactory {

    public boolean canProcess(Object context) {
        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

                e.printStackTrace();
                return null;
            }
        }
        for( int i = 0; i < mapsetMembers.size(); i++ ) {
            IResolve resolve = mapsetMembers.get(i);
            URL identifier = resolve.getIdentifier();
            if (mapsetIdentifier.toExternalForm().equals(identifier.toExternalForm())) {
                mapsetMembers.remove(i);

                ICatalog catalog = parent(null);
                if (catalog instanceof CatalogImpl) {
View Full Code Here

*/
public class JGTtmsConnectionFactory extends UDIGConnectionFactory {

    public boolean canProcess( Object context ) {
        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);
            }
        }
        return false;
View Full Code Here

                for( Map.Entry<String, String> item : mapNamesAndTypes.entrySet() ) {

                    String name = item.getKey();
                    String type = item.getValue();

                    IResolve jgrassMapGeoResource = new JGrassMapGeoResource(parent, this, name, type);
                    jgrassMapMembers.add(jgrassMapGeoResource);
                }

                return jgrassMapMembers;
            }
View Full Code Here

                ((CatalogImpl) catalog).fire(event);
            }
        } else {
            try {
                int index = jgrassMapMembers.indexOf(resource);
                IResolve iResolve = jgrassMapMembers.get(index);
                // ((JGrassMapGeoResource) iResolve).resetBoundInfo();
                resource = ((JGrassMapGeoResource) iResolve);
                resource.resetBoundInfo();
            } catch (IOException e) {
                String message = "An error occurred while reloading the file bounds info.";
View Full Code Here

        if (event.getType() != IResolveChangeEvent.Type.POST_CHANGE) {
            return;
        }

        IResolveDelta delta = event.getDelta();
        IResolve hit = event.getResolve();

        // Temporary solution while migrating to URI identifiers
        if (delta.getKind() == IResolveDelta.Kind.CHANGED && hit != null) {

            ID affected = hit.getID();
            ID id = getResourceID();
            if (id == null)
                return;

            List<IGeoResource> resources = geoResources;
View Full Code Here

    @Override
    protected void showDetail( Object selection ) {
        if (!(selection instanceof IResolve)) {
            return;
        }
        IResolve record = (IResolve) selection;
        if (record instanceof ICatalog) {
            ICatalog catalog = (ICatalog) record;
            try {
                ICatalogInfo info = catalog.getInfo(searchMonitor);
                showInfo(new Info(catalog.getIdentifier(), info));
View Full Code Here

        if (parent instanceof String)
            return new Object[0];
        if (!(parent instanceof IResolve))
            return null;

        IResolve resolve = (IResolve) parent;
        if (structure.containsKey(resolve)) {
            List<IResolve> members = structure.get(resolve);
            return members != null ? members.toArray() : null;
        } else {
            update(resolve); // calculate
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.IResolve

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.