[udig-devel] About deleting a layer from catalog

Jesse Eichar jeichar at refractions.net
Tue Jul 24 15:24:14 PDT 2007


On Jul 24, 2007, at 2:11 PM, Schmitt, Magna (CIP) wrote:

> Hello:
> I have tried this solution:
>     private void remove( IService service ) {
>          CatalogPlugin.getDefault().getCatalogs()[0].remove(service);
>      }
>
>      private void remove( IGeoResource service ) {
>          try {
>              remove(service.service(null));
>          } catch (IOException e) {
>              CatalogUIPlugin.log(null, e);
>          }
>      }
>
> but i have to get a layer selected from the CATALOG but is there an  
> other way to get the layer if i have it selected from the "layer's  
> view", for example??
>

Could you expand on this last sentence, I'm not totally sure what you  
mean.

Jesse


More information about the udig-devel mailing list