| Summary: | Welcome page links to classic update | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Casual J. Programmer <casualprogrammer> | ||||||||
| Component: | p2 | Assignee: | Tim Mok <timothym> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | cgold, susan | ||||||||
| Version: | 3.4 | Flags: | john.arthorne:
review+
|
||||||||
| Target Milestone: | 3.4 M6 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Casual J. Programmer
Casual J. Programmer, You shouldn't be installing and running with nightly builds - these builds just contain whatever code is in our repository at midnight. There is no guarantee that this will work in any reasonable way. Are you having similar problems with integration or milestone builds? I installed the nightly to get rid of Bug 209428 and while it worked out nicely I thought I might stick with it. Seems to work OK otherwise. The suggestion with switching start page to what's new is valid for other builds too, as far as I recall they all come up with overview and that the asterisk is hiding valuable information one can only guess. Ah, there is a good bug in here. The Welcome page provides a link that opens classic Update Manager. It should be opening the p2 UI. Tim, can you investigate? I think there is an existing bug in p2 that discusses this.. Created attachment 92593 [details]
Welcome Page v01
Patch changes:
+Changed the LaunchUpdateIntroAction to detect if the p2 UI bundle is present and execute the correct update dialog. It will either execute the command for p2 or the update manager.
I'm not sure if there's a better way to do this but I think it's definitely best that this LaunchUpdateIntroAction be the point of change. I don't know who owns the project (org.eclipse.platform).
Tim, I'm thinking a simpler fix would be to just try to invoke the p2 command, and then catch the NotHandledException/NotDefinedException, and revert to the update command. That way we wouldn't be hard-coding the assumption about what p2 bundle is providing the command. If you could add a new patch I can release today. Created attachment 92730 [details]
Welcome Page v02
Patch changes:
+Refactored LaunchUpdateIntroAction to execute the Update Manager command if the p2 command fails with a NotDefinedException or NotHandledException.
Created attachment 92736 [details]
Welcome Page v03
Patch changes:
+Changed the command execution to run in an asyncExec UI thread.
+Logged the ExecutionException.
Thanks Tim. Patch released. |