Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] demo bug stomp: dnd x 3

Jody Garnett wrote:

Noticed that DnD has creativly changed:

A single DnD of C:\java\shapefile\a.shp

Results in three entries
- java\shapefile (empty)
- shapefile\cntry00.shp (empty)
- shapefile\cntry00.shp (cntry00)
This occurs in windows and linux.
Jody


Tracked it down to IServiceFactory aquire( URL target ); the DnD code has a loop like this:

List<IService> services=CatalogPlugin.getDefault().getServiceFactory().aquire(url); for( IService service: services)
    CatalogPlugin.getDefault().getLocalCatalog().add(service);

I will try convice the DnD code to check that the service works before it is added considered good. Although at the end of the day IServiceFactory.aquire may want the functionality.

Jody


Back to the top