Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313512 - [vm][cache][api] Add update flag to flush all properties
Summary: [vm][cache][api] Add update flag to flush all properties
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 8.0   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Pawel Piech CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-19 08:24 EDT by Anton Leherbauer CLA
Modified: 2010-08-20 04:23 EDT (History)
2 users (show)

See Also:


Attachments
Proposal (3.02 KB, patch)
2010-05-19 08:37 EDT, Anton Leherbauer CLA
aleherb+eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Leherbauer CLA 2010-05-19 08:24:41 EDT
There is currently no easy way to flush only the element state.
This request is to add a flag IVMUpdatePolicy.FLUSH_ALL_PROPERTIES which simply clears the properties from the cache and keeps the children information.
Comment 1 Anton Leherbauer CLA 2010-05-19 08:37:42 EDT
Created attachment 169102 [details]
Proposal

I verified that this can be used to fix the icon update issue of bug 312817.
Comment 2 Marc Khouzam CLA 2010-05-19 10:07:21 EDT
(In reply to comment #1)
> Created an attachment (id=169102) [details]
> Proposal
> 
> I verified that this can be used to fix the icon update issue of bug 312817.

Just a note that (without the current patch), in bug 312817 I see that sometimes the icon gets properly updated (1 in 10 times maybe).  We must have a race condition...
Comment 3 Marc Khouzam CLA 2010-05-19 10:09:18 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > Created an attachment (id=169102) [details] [details]
> > Proposal
> > 
> > I verified that this can be used to fix the icon update issue of bug 312817.
> 
> Just a note that (without the current patch), in bug 312817 I see that
> sometimes the icon gets properly updated (1 in 10 times maybe).  We must have a
> race condition...

And the icon is correct when I used GDB 7.0 but usually wrong with GDB 6.8.  We must be doing something wrong in the services, or maybe the events don't arrive with the same timing.
Comment 4 Anton Leherbauer CLA 2010-08-20 04:12:25 EDT
I committed the new flag to HEAD.  It is not used yet, but might be useful.