Examples of LayerFactory


Examples of org.locationtech.udig.project.internal.LayerFactory

                if (monitor.isCanceled()) {
                    return Status.CANCEL_STATUS;
                }

                LayerFactory factory = map.getLayerFactory();
                if (factory == null) {
                    factory = ProjectFactory.eINSTANCE.createLayerFactory();
                }

                if (monitor.isCanceled()) {
                    return Status.CANCEL_STATUS;
                }

                for( IGeoResource resource : geoResources ) {
                    monitor.beginTask(Messages.MapFactory_retrieveTask, geoResources.size());
                    if (monitor.isCanceled()) {
                        return Status.CANCEL_STATUS;
                    }

                    try {
                        IService service = resource.service(monitor);
                        CatalogPlugin.getDefault().getLocalCatalog().add(service);

                        Layer layer = factory.createLayer(resource);
                        if (layer != null) {
                            layers.add(layer);
                        }
                    } catch (IOException e) {
                        exceptions.add(e);
View Full Code Here

Examples of org.locationtech.udig.project.internal.LayerFactory

        MapGraphicService service=CatalogPlugin.getDefault().getLocalCatalog().getById(MapGraphicService.class, MapGraphicService.SERVICE_ID, ProgressManager.instance().get());
        try {
            List< ? extends IGeoResource> members = service.resources(ProgressManager.instance().get());
            for( IGeoResource resource : members ) {
                if( resource.canResolve(GridMapGraphic.class) ){
                    LayerFactory factory = map.getLayerFactory();
                    Layer newLayer = factory.createLayer(resource);
                    newLayer.getBlackboard().put(KEY, KEY);
                   
                    AddLayerCommand command = new AddLayerCommand(newLayer);
                    map.sendCommandASync(command);
                }
View Full Code Here

Examples of org.locationtech.udig.project.internal.LayerFactory

    public String getExtensionPointID() {
        return "org.locationtech.udig.printing.ui.standardBoxes"; //$NON-NLS-1$
    }

    public void setMapGraphic( MapGraphicResource resource ) {
        LayerFactory factory = ProjectFactory.eINSTANCE.createLayerFactory();
        try {
            if (layer != null) {
                layer.removeListener(layerListener);
            }
            layer = factory.createLayer(resource);
            layer.addListener(layerListener);
        } catch (IOException e) {
            setMissingResourceWarning();
        }
        setDirty(true);
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.