Bug 93660 - [Decorators] Need API to invalidate an in progress decoration
Summary: [Decorators] Need API to invalidate an in progress decoration
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-05-04 11:48 EDT by Markus Meilchen CLA
Modified: 2009-08-30 02:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Meilchen CLA 2005-05-04 11:48:31 EDT
We are using decorators to decorate the tree nodes of a TreeViewer. Invoking 
update() for a tree node usually results in the method decorate() being 
invoked on the decorator. If multiple update() calls for the same tree node 
are issued in a short time period (<50 ms) some decorate() calls seem to 
be "lost".

More precisely: We have three update() calls for a tree node, but only the 
second one results in the decorate() method of the decorator being invoked.

As a result the decorator does not reflect the actual state of the tree node 
after the three update calls correctly. The decorator still shows the state of 
the tree node at the time the second update() call has been issued.

Synchronizing the calls or using sync instead of async does not change the 
result.
Comment 1 Tod Creasey CLA 2005-05-04 12:01:01 EDT
We do not duplicate calculations if an update is already in process. If you call
update again before you get your labelProviderChanged callback then you may get
stale data.

We did this as a performance tradeoff to prevent the cancellation of updates.

Bascially you would need a way to tell the decorator manager to throw away a
current cached result and then recalculate
Comment 2 Tod Creasey CLA 2006-04-07 12:59:48 EDT
There are currently no plans to work on this feature
Comment 3 Denis Roy CLA 2009-08-30 02:08:23 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.