Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 129199 - Package Explorer flickering when refresing or importing new projects
Summary: Package Explorer flickering when refresing or importing new projects
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 0.4   Edit
Hardware: PC Windows All
: P2 major (vote)
Target Milestone: 0.5   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 130508 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-23 13:30 EST by Eugene Kuleshov CLA
Modified: 2006-03-07 22:56 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Kuleshov CLA 2006-02-23 13:30:37 EST
There is very noticeable flickering of the Package Explorer view when opening closed project, importing, or refreshing large projects with active Mylar task.
Comment 1 Mik Kersten CLA 2006-02-23 13:37:58 EST
This is due to every resource becoming interesting when a project is opened, checked out, or imported, since Mylar adds every resource created by the user intereresting.  I'm going to mark this down to major since there is a known work-around (which I'm frankly getting quite annoyed with): deactivate the task before hand.  Scheduled for 0.5
Comment 2 Eugene Kuleshov CLA 2006-02-23 13:41:56 EST
Right, I know about it but always forgetting to do it. Also, as I recall correctly there had been suggestion to not make new projects interesting and only make new resources interesting if there are any interest in the project they belong to.
Comment 3 Mik Kersten CLA 2006-02-23 13:44:31 EST
Yup, that was a very good suggestion and most likely the way this will get fixed.    
Comment 4 Mik Kersten CLA 2006-03-06 12:13:55 EST
*** Bug 130508 has been marked as a duplicate of this bug. ***
Comment 5 Wang Bin CLA 2006-03-07 01:12:38 EST
We can fix it by providing a method addResourceToContext(List<IResource>) for ResourceInterestUpdater and do some other changes. If so, we can refresh it only once.
Comment 6 Mik Kersten CLA 2006-03-07 22:56:02 EST
This has now been resolved by making mylar.ide.ResourceChangeMonitor batch interest updated for the entire resource delta, rather than issuing seperate events (and a method similar to what Wang suggests was added).  However, note that opening a new project will still make every resource in that project interesting (just not result in flicker).  

The suggested work-around in comment#2 is problematic because it breaks the case of moving a resource to an uninteresting project (e.g. via Refactor -> Move), so we're stuck with the policy: if a resource is created when a context is active, it becomes interesting (I'm going to add this to a tips & tricks doc).  But on the bright side it's quick to right-click the project and mark it uninteresting, and even if that's not done the interesting resources will decay quickly.  So we should still watch over this but the behavior should be much better now.