[jira] Created: (UDIG-1665) selected features not deleted

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] Created: (UDIG-1665) selected features not deleted

JIRA jira@codehaus.org
selected features not deleted

                 Key: UDIG-1665
                 URL: http://jira.codehaus.org/browse/UDIG-1665
             Project: uDIG
          Issue Type: Bug
          Components: tools and editing
    Affects Versions: UDIG 1.2.RC3
         Environment: Linux 64
            Reporter: Andrea Antonello
            Assignee: Andrea Antonello
             Fix For: UDIG 1.2.RC3

In net.refractions.udig.project.internal.commands.edit.DeleteManyFeaturesCommand

the line:
FeatureStore<SimpleFeatureType, SimpleFeature> fs = ilayer.getResource(FeatureStore.class, monitor);

returns me an null object when trying to delete features.

In my opinion net.refractions.udig.project.internal.impl.LayerResource
needs a change in resolve.

While canResolve has:
return geoResource.canResolve(adaptee);

the resolve method misses:
        if (this.geoResource.canResolve(adaptee)) {
            return geoResource.resolve(adaptee, monitor);

therefore doing canResolve == true but then not being able to resolve.

Fix is to add the above method.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

User-friendly Desktop Internet GIS (uDig)