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

Bug 219136

Summary: [ErrorHandling] [ErrorHandling] Option in error dialog to "continue anyway"
Product: [Eclipse Project] Platform Reporter: Susan McCourt <susan>
Component: UIAssignee: Krzysztof Daniel <krzysztof.daniel>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: Kevin_McGuire, krzysztof.daniel, remy.suen
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 241244    
Bug Blocks:    

Description Susan McCourt CLA 2008-02-15 13:46:33 EST
We have a case in the p2 UI where we detect an error condition and want to report it to the user.  But we want to give them the option to "try it anyway."  For example, something they want to do is incompatible with their installation, but rather than just report the incompatibility, we want to give them the option to launch the wizard in the error state and make changes to fix it.

I've currently implemented this with a preference and MessageDialogWithToggle.  So  the scenario is:

- user selects some stuff and pushes a button to install
- we compute that it has a non-OK status
- a MessageDialogWithToggle comes up and says, "there may be a problem, do you want to open the wizard anyway?"

If they say yes, we open the wizard (fine).
If they say no, we open the error dialog (kind of bogus that we told them there was an error but not what it was until they answered the question).

What would have been nice was a way to report the full error, and include a question like "Open the wizard anyway?" and an extra button.

I realize we can implement this somehow in our MessageDialogWithToggle (by reporting the error there), but I thought this might be a nice general enhancement for the status handling
Comment 1 Krzysztof Daniel CLA 2008-02-28 04:08:11 EST
Status Handling was not designed to work with that case. All methods are not blocking and asynchronous.

The requested functionality seems to be very difficult to achieve (Especially blocking thread until user action).

WONTFIX?
Comment 2 Krzysztof Daniel CLA 2008-12-22 02:34:15 EST
error dialog is replaceable and one should not rely on its functionality. User is able to override its setting and ignore even BLOCK or SHOW flag (they are only hints).

marking as wontfix.