[udig-devel] layer deprecated getGeoResource( type ) needs to
come back
Jesse Eichar
jeichar at refractions.net
Fri Sep 8 10:02:08 PDT 2006
The getResource methods are blocking but not blocking. IE even when
called in the UI they will not block the UI thread so updates will
occur to the UI. However it is synchronous so that the thread that
calls it will not continue on until a result is obtained.
Jesse
On 8-Sep-06, at 7:29 AM, Jody Garnett wrote:
> Just found a good one here ... some of the changes to the Layer API
> force me to dodge GeoResource, problem is GeoResource has access to
> GeoResourceInfo (which is way more specific then anything I can get
> out of GeoTools FeatureSource).
>
> So in the case where I have multiple GeoResources for a layer I
> really need the following method to figure out what is going on...
> - getGeoResource( type ) - // note this is a non blocking search!
>
> The two alternatives recommended by the @deprecated tag do not
> measure up:
> - getResource( type, monitor ) - // this is blocking, I can not use
> it from the UI thread (specifically for tool enable/disable)
>
> If I have missed something please let me know, if not can we
> restore the method mentioned.
> Jody
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
More information about the udig-devel
mailing list