[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| [udig-devel] [jira] Created: (UDIG-353) LayerImpl.getWMS calls a	blocking method while in the UI Thread | 
LayerImpl.getWMS calls a blocking method while in the UI Thread
---------------------------------------------------------------
         Key: UDIG-353
         URL: http://jira.codehaus.org/browse/UDIG-353
     Project: uDIG
        Type: Bug
  Components: layer  
    Versions: UDIG 0.9    
    Reporter: Richard Gould
 Assigned to: Jesse Eichar 
resolve should not be called while in hte UI thread (it blocks)
        public WebMapServer getWMS(){
            
            for( Iterator iter = getGeoResources().iterator(); iter.hasNext(); ) {
                IGeoResource resource = (IGeoResource) iter.next();
                try {
                    if (resource.parent(null).canResolve( WebMapServer.class ) ) {
                            return (WebMapServer) resource.parent(null).resolve(WebMapServer.class, null);
                    }
                } catch (IOException e) {
                    // keep looking
                }
            }
            return null;
        }
-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira