Examples of resources()


Examples of org.locationtech.udig.mapgraphic.internal.MapGraphicService.resources()

     * @return the IGeoResource for the provided graphic class
     */
    public static MapGraphicResource findResource( Class< ? extends MapGraphic> graphic ) {
        MapGraphicService service = getMapGraphicService();
        try {
            List<MapGraphicResource> resources = service.resources(new NullProgressMonitor());
            for( MapGraphicResource mapGraphicResource : resources ) {
                if (graphic.isAssignableFrom(mapGraphicResource.getGraphic().getClass())) {
                    return mapGraphicResource;
                }
            }
View Full Code Here

Examples of org.locationtech.udig.mapgraphic.internal.MapGraphicService.resources()

    }

    private void addLayer( IMap map ) {
        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);
View Full Code Here

Examples of org.switchyard.component.common.knowledge.annotation.Manifest.resources()

        ManifestModel manifestModel = new V1ManifestModel(knowledgeNamespace.uri());
        Container[] container = manifestAnnotation.container();
        if (container != null && container.length > 0) {
            manifestModel.setContainer(toContainerModel(container[0], knowledgeNamespace));
        }
        manifestModel.setResources(toResourcesModel(manifestAnnotation.resources(), knowledgeNamespace));
        return manifestModel;
    }

    /**
     * Converts globals to mappings model.
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.