Decorator performance [message #521300] |
Wed, 17 March 2010 04:26  |
Eclipse User |
|
|
|
Hello,
I add a org.eclipse.ui.decorators extension point to get decorator for elements in my trees. The method decorate() is called for each elements, and in this method I have my own treatment to manage the display of the decorator.
The problem is that when I have several elements in my trees, it take a lot of time to decorate elements, and the application is stuck during a long time.
Is there a way to improve the management of the decorator, when there is a lot of elements?
Thanks in advance,
David.
[Updated on: Wed, 17 March 2010 05:08] by Moderator
|
|
|
|
Re: Decorator performance [message #521892 is a reply to message #521675] |
Fri, 19 March 2010 04:13  |
Eclipse User |
|
|
|
@Sophie
How to you create your decorator in a separate thread? Because you just have a XXXDecoratorLabel class which implements "ILightweightLabelDecorator", and you wrapp it with the label provider.
I think the problem is the refresh treatment of the decorator, after the decorate() method is called for each element of the tree. But it should be managed in a specific thread which doesn't blocked the application.
Thanks for your help.
David.
|
|
|
Powered by
FUDForum. Page generated in 0.25661 seconds