Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 140088 - [Sync View] Add preference to populate/synchronize page automatically
Summary: [Sync View] Add preference to populate/synchronize page automatically
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.3 M1   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-03 18:31 EDT by CLA
Modified: 2006-06-23 17:15 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 CLA 2006-05-03 18:31:09 EDT
Since Eclipe 3.2 RC2 whenever I start Eclipse and go to the Team Perspective, the Synchronize View always contains the text message:

"This view is not populated on startup.  You can choose to populate CVS (Workspace) without contacting the server or to synchronize with the server."

If I choose "Populate" or "Synchronize", then the next time I quit and launch Eclipse I'm back to the same message whatever I do.  This is intended behavior according to Michael Valenta who says in the newsgroup:

"It is intended behavior. Populating the synchronize view can take a fair number of cycles and we found that doing it on startup had a considerable performance hit in some cases."

I for one prefer the old behavior, because whenever I display the Synchronize View I like to see immediatley what changes need to be committed to CVS.  Can we have the old behavior back as a preference?

Cheers,

Phil
Comment 1 Michael Valenta CLA 2006-05-04 06:27:27 EDT
The old behavior had several flaws. For one it didn't populate on startup unless the synchronize view was visible. Otherwise, it populated when the sync view was actibvated. Secondly, all synchronizations populated when the sync view was made visible.

So the question is what should the proper behavior be? Do you want the page to populate on startup (regardless of whether the sync view is visible) or when the view is activated (as with the old-style sync)? One possibility is to add an option to synchronize shortly after startup. Synchronizing will populate the page. This has the added advantage that it will also show you any new remote changes.
Comment 2 CLA 2006-06-13 12:55:01 EDT
I think I would like the "Populate on startup" option.  In Eclipse 3.1 I liked to see immediately what local files had changed.  I got used to using the CVS view as a kind of a quick "show me only the dirty local files" view.
Comment 3 Mik Kersten CLA 2006-06-15 11:32:13 EDT
I agree that the current behavior is annoying, since every time Ecipse starts up I click "Populate" (sometimes Synch, but I don't mind having to click a toolbar button for that).  It feels to me like it goes against Eclipse's consistency in restoring the state of the workbench on restart.

Regarding comment#1, part of me feels like it should follow the lazy loading we're accustomed to and not populate unless the view is visible.  However, once the Package/Project Explorer loads it could be argued that the user/UI is 'requesting' a lazy load of synchronization info (e.g. expects the CVS decorators to be correct).  So while I think either would be an improvement over the current thing, running the synch on resource view or team decorator synchronization could be better (and avoid needing to have an earlyStartup).

Regarding setting the preference, an easy way might be to add an "Always synch on startup..." type checkbox to the Populate/Synchronize prompt when it comes up blank.
Comment 4 Michael Valenta CLA 2006-06-23 16:57:45 EDT
Fixed released to HEAD. There is a preference tab in the Preferences available from the view dropdown in the sync view and a checkbox on the Synchronize/Populate page. A scenario has been added to the manual test cases.
Comment 5 CLA 2006-06-23 17:02:06 EDT
Thank-you for doing this.

Is the new preference for Synch, Populate or either?

PB
Comment 6 Michael Valenta CLA 2006-06-23 17:08:43 EDT
If you meant Synch, Populate or neither then the answer is yes. I'm not sure what either would do (perhaps randomly choose one ;-)
Comment 7 CLA 2006-06-23 17:15:05 EDT
:-)