[udig-devel] About deleting a layer from catalog
Schmitt, Magna (CIP)
M.SCHMITT at CGIAR.ORG
Tue Jul 24 14:11:19 PDT 2007
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??
Regards,
Magna
More information about the udig-devel
mailing list