Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] [jira] Reopened: (UDIG-352) CatalogTreeViewer.getChildren calls IResolve.members in the UI thread

     [ http://jira.codehaus.org/browse/UDIG-352?page=history ]
     
Richard Gould reopened UDIG-352:
--------------------------------

     Assign To: Jody Garnett  (was: David Zwiers)

Perhaps jody can tackle this?

> CatalogTreeViewer.getChildren calls IResolve.members in the UI thread
> ---------------------------------------------------------------------
>
>          Key: UDIG-352
>          URL: http://jira.codehaus.org/browse/UDIG-352
>      Project: uDIG
>         Type: Bug
>   Components: catalog
>     Versions: UDIG 0.9
>     Reporter: Richard Gould
>     Assignee: Jody Garnett

>
>
> Members is a blocking method and should not be called in the UI thread.
>     public Object[] getChildren(Object parent) {
>         
>         if(parent == null)
>             return null;
>         if( parent instanceof List)
>             return ((List)parent).toArray();
>         if( parent instanceof String ) 
>             return new Object[0];
>         if( parent instanceof IResolve )
>             try {
>                 return ((IResolve)parent ).members(null).toArray();
>             } catch (IOException e) {
>                 CorePlugin.log(CatalogUIPlugin.getDefault(), e);
>             }
>         
>         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



Back to the top