Community
Participate
Working Groups
Build ID: I20071213-1700 Steps To Reproduce: 1. Open the plug-in registry view 2. Type "ant" in the tree filter 3. Watch the results get filtered, but the text "Filter matched XXX of XXX plug-ins" does not change until you click the refresh button. More information: I have also noticed that it is quite easy to get this view in a state where the "Clear" button is never shown on the filter text area, so you always have to manually delete the filter text, then hit refresh manually again. There is something wonky going on here on more than one level.
I can look into this.
Cool!
Mark, thanks for the report. I'd split this into actually two separate problems: The first one - View description ("Filter matched...") does not update on filter change - we indeed don't update this text now. The second one - "Clear" button doesn't appear every time it should - that's in fact the FilteredTree behavior. After filter text change, the viewer runs a Job to update tree structure with a certain time limit. For reason still unknown to me this update takes too much time, causes Job to be canceled and the button state is never updated. It works correctly if there's not much items in view. I see two approaches here: 1. always update "Clear" button state, not waiting for Job finish. 2. make tree update faster. (this might be needed anyway to correctly display "Filter matched..." text) (I'll move it to a separate bug)
(In reply to comment #3) > The second one - "Clear" button doesn't appear every time it should - [...] > (I'll move it to a separate bug) see bug 218150
Created attachment 89155 [details] patch Fix is to update view title, after filtering has been finished in FilteredTree. Please review Chris.
(In reply to comment #5) > Created an attachment (id=89155) [details] > patch ah my enigmatic comments ;) the patch attached here fixes only this: >The first one - View description ("Filter matched...") does not update on >filter change - we indeed don't update this text now. the solution for second issue: >The second one - "Clear" button doesn't appear every time it should... is worked on in bug 218150
looks good.
Created attachment 89581 [details] mylyn/context/zip
Thanks Jacek, I don't think there was a better way to do this than your solution :)
Verified in I20080325-0100