Bug 109596 - [Decorators] could not clear the cached images from the DecorationScheduler
Summary: [Decorators] could not clear the cached images from the DecorationScheduler
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2005-09-15 07:13 EDT by Michael Seele CLA
Modified: 2019-09-06 15:38 EDT (History)
0 users

See Also:


Attachments
tree viewer with refresh delay (1.61 KB, text/x-java)
2005-09-15 09:34 EDT, Michael Seele CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Seele CLA 2005-09-15 07:13:36 EDT
hi,

i need to clear the cached resources from the DecorationScheduler in my plugin.
because of the caching, i got problems with the updating of images when there
are "to much" repaint events for my TreeViewer
Comment 1 Tod Creasey CLA 2005-09-15 08:56:16 EDT
The cache is cleared everytime decoration sends label updates. Is this issue
that you have a state change inbetween?

As far as getting too many updates it may be because you have too many requests.
clearing the caches will make your problem worse as we will be calculating more
often.
Comment 2 Michael Seele CLA 2005-09-15 09:33:28 EDT
my problem is that i send many refresh "commands" to the treeViewer and not
every image is updated. for this reason i debugged the code of
DecorationScheduler and i established that the image will not be refreshed if it
should but the old cached image is given back. 

as workaround i implement a special treeViewer which refreshs the viewer after a
delay of no refresh requests(i've attached that file).
but it's only a workaround! 

imho it is a bug of the DecorationScheduler!!!
Comment 3 Michael Seele CLA 2005-09-15 09:34:15 EDT
Created attachment 27164 [details]
tree viewer with refresh delay
Comment 4 Tod Creasey CLA 2005-09-15 09:42:09 EDT
OK so this is the problem I thought - the issue here is that all updates for the
same object requested after the first are ignored. The cache is cleared after
the label provider changed event.

If the decorator changes in that time you will get stale values. The workaround
is to wait for the label updates on the stale objects and then request again.
Comment 5 Michael Seele CLA 2005-09-15 09:51:29 EDT
but do you work on a fix of this bug?

imho a accessor to clear the cache will be enought...
Comment 6 Tod Creasey CLA 2005-09-15 09:59:53 EDT
We are generally looking at decorator issues for 3.2 and this is one of the ones
we will be discussing.
Comment 7 Tod Creasey CLA 2005-09-15 10:00:12 EDT
mouse slipped
Comment 8 Boris Bokowski CLA 2009-11-17 10:54:11 EST
Oleg is now responsible for watching the [Decorators] category.
Comment 9 Eclipse Webmaster CLA 2019-09-06 15:38:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.