Content provider with a long loading timehttps://www.eclipse.org/forums/index.php/mv/msg/124722/381682/#msg_381682
I have a tree that uses a content provider to be populated.
The content provider is getting the data from a remote database (using
EclipseLink, over the network), and so is a bit long operation.
When this loading is happening my RCP is completely blocked.

Could anybody suggest me the correct way to do this operation?

I though of eclipse.jobs and monitors, is it an (/the most) appropriate
solution?

Cheers,
André]]>Andre Ribeiro2008-10-08T16:24:38-00:00Re: Content provider with a long loading timehttps://www.eclipse.org/forums/index.php/mv/msg/124722/381684/#msg_381684
- Fetch the Data into an Collection (outside to UI-Thread e.g. using
BusyCursor or IProgressService) and pass this list to the viewer
the content provider is then a simply ArrayContentProvider

Tom

André Ribeiro schrieb:
> Hi all,
>
> I have a tree that uses a content provider to be populated.
> The content provider is getting the data from a remote database (using
> EclipseLink, over the network), and so is a bit long operation.
> When this loading is happening my RCP is completely blocked.
>
> Could anybody suggest me the correct way to do this operation?
>
> I though of eclipse.jobs and monitors, is it an (/the most) appropriate
> solution?
>
> Cheers,
> André

Tom Schindl schrieb:
> - DeferredContentProvider
> - Fetch the Data into an Collection (outside to UI-Thread e.g. using
> BusyCursor or IProgressService) and pass this list to the viewer
> the content provider is then a simply ArrayContentProvider
>
> Tom
>
> André Ribeiro schrieb:
>> Hi all,
>>
>> I have a tree that uses a content provider to be populated.
>> The content provider is getting the data from a remote database (using
>> EclipseLink, over the network), and so is a bit long operation.
>> When this loading is happening my RCP is completely blocked.
>>
>> Could anybody suggest me the correct way to do this operation?
>>
>> I though of eclipse.jobs and monitors, is it an (/the most) appropriate
>> solution?
>>
>> Cheers,
>> André
>
>]]>Mario Winterer2008-10-09T11:48:14-00:00Re: Content provider with a long loading timehttps://www.eclipse.org/forums/index.php/mv/msg/124722/381688/#msg_381688
Thanks a lot Tom!

Tom Schindl wrote:
> - DeferredContentProvider
> - Fetch the Data into an Collection (outside to UI-Thread e.g. using
> BusyCursor or IProgressService) and pass this list to the viewer
> the content provider is then a simply ArrayContentProvider
>
> Tom
>
> André Ribeiro schrieb:
>
>> Hi all,
>>
>> I have a tree that uses a content provider to be populated.
>> The content provider is getting the data from a remote database (using
>> EclipseLink, over the network), and so is a bit long operation.
>> When this loading is happening my RCP is completely blocked.
>>
>> Could anybody suggest me the correct way to do this operation?
>>
>> I though of eclipse.jobs and monitors, is it an (/the most) appropriate
>> solution?
>>
>> Cheers,
>> André
>>
>
>
>]]>Andre Ribeiro2008-10-09T14:52:16-00:00