Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322453

Summary: [ui] Make the "Reload" button work while multiple repositories/update sites are highlighted.
Product: [Eclipse Project] Equinox Reporter: Kal Sze <swordangel>
Component: p2Assignee: Krzysztof Daniel <krzysztof.daniel>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: krzysztof.daniel, markus.kell.r
Version: unspecifiedFlags: krzysztof.daniel: review? (pascal.rapicault)
Target Milestone: ---   
Hardware: Macintosh   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch krzysztof.daniel: review?

Description Kal Sze CLA 2010-08-11 21:18:24 EDT
Build Identifier: 20100617-1415

Update sites can be manually reloaded in "Preferences" -> "Install/Update" -> "Available Software Sites". There is a "Reload" button for it. As of Eclipse Helios 3.6, this button can still only work with one update site at a time. This behaviour is acceptable if only very few update sites were unreachable. However, it is rather annoying when many update sites need to be reloaded.

For instance, sometimes, the user tries to check for updates while the Internet connection is unavailable. Eclipse would spend a very short amount of time trying to reach the update sites and conclude that all of them are unavailable. At this point, even if the user immediately fixes the Internet connection and retries checking for updates, Eclipse would look at its update site cache and immediately assume that the update sites are still unavailable. The user would then have to open "Preferences" -> "Install/Update" -> "Available Software Sites", highlight the update sites one by one, and click the "Reload" button for each of them; the alternative would be to shutdown Eclipse and restart it in order to force Eclipse to discard the update site cache, which, in my opinion, is also annoying.

Reproducible: Always

Steps to Reproduce:
1. Open the Eclipse Preferences;
2. Expand the "Install/Update" section;
3. Open the "Available Software Sites" subsection;
4. Highlight multiple software sites (by holding the shift key and clicking);
5. The "Reload" buttons becomes grayed out.
Comment 1 Krzysztof Daniel CLA 2013-08-08 06:05:38 EDT
Created attachment 234190 [details]
Patch
Comment 2 Markus Keller CLA 2014-02-28 10:30:58 EST
The user should not have to care about "Reload" in the first place, see bug 388923. Every explicit user interaction with the p2 UI is an already an explicit request to reload (or verify that the cached update content is up-to-date).