Bug 220523 - [StatusHandling] Improve information on error dialog
Summary: [StatusHandling] Improve information on error dialog
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Krzysztof Daniel CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-02-27 05:02 EST by Martin Aeschlimann CLA
Modified: 2008-03-28 08:23 EDT (History)
5 users (show)

See Also:


Attachments
screenshot (10.58 KB, image/png)
2008-02-27 05:02 EST, Martin Aeschlimann CLA
no flags Details
Solution proposal (12.75 KB, image/jpeg)
2008-02-27 11:06 EST, Krzysztof Daniel CLA
no flags Details
Patch (3.02 KB, patch)
2008-02-27 11:11 EST, Krzysztof Daniel CLA
no flags Details | Diff
mylyn/context/zip (2.21 KB, application/octet-stream)
2008-02-27 11:11 EST, Krzysztof Daniel CLA
no flags Details
Patch with changed message (4.21 KB, patch)
2008-02-28 04:33 EST, Krzysztof Daniel CLA
no flags Details | Diff
Screenshot with the prev dialog (21.84 KB, image/jpeg)
2008-02-28 08:41 EST, Szymon Brandys CLA
no flags Details
new solution proposal (13.14 KB, image/pjpeg)
2008-02-29 04:56 EST, Krzysztof Daniel CLA
no flags Details
Updated patch [API changed] (12.33 KB, patch)
2008-02-29 04:57 EST, Krzysztof Daniel CLA
no flags Details | Diff
indented second line, error replaced with problem (12.72 KB, image/pjpeg)
2008-02-29 06:55 EST, Krzysztof Daniel CLA
no flags Details
long error dialog (11.56 KB, image/png)
2008-02-29 07:22 EST, Martin Aeschlimann CLA
no flags Details
First and second message are much closer now (14.83 KB, image/jpeg)
2008-02-29 07:51 EST, Krzysztof Daniel CLA
no flags Details
Patch (19.28 KB, patch)
2008-02-29 08:04 EST, Krzysztof Daniel CLA
no flags Details | Diff
Patch reviewed (23.91 KB, patch)
2008-03-03 05:22 EST, Szymon Brandys CLA
no flags Details | Diff
Two more 'final' removed (24.32 KB, patch)
2008-03-03 08:47 EST, Krzysztof Daniel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2008-02-27 05:02:33 EST
Created attachment 90838 [details]
screenshot

I20080226-1155

- create an class A
- search for declarations of A
- delete A
- go to the search view and press 'Search again' (for A)

You get an error dialog. See attachment

a.) The first line in bold says 'Error'. I think the word 'Error' should be avoided, it's rather a 'problem'. I also think that this is already clear from the image and the dialog title.

b.) The information 'Java Search (Time of error: Not available)' is not so useful. I suggest, if there is no time of error, then better leave this away.
Maybe 'Java Search' could also be embedded in a message:

'Java Search' reported a problem:
Element 'A' does not exist.

c.) Details shows exactly the same as written in the declaration. I suggest to no offer details, if there are no details
Comment 1 Krzysztof Daniel CLA 2008-02-27 05:58:15 EST
a. 
I think that replacing 'Error' with other word may be considered. However 'Error' is something what the developer wants to say (there are also other options: CANCEL, INFO, WARNING). The dialog title is always the same for single issue.

b.
Removing time clause if there is no timestamp is a good idea. I will investigate messages that appears on the error dialog.

c. dup of bug 211664

Szymon, Martin, could you assign this bug to me and add there [StatusHandling] phrase in the beggining?
Comment 2 Martin Aeschlimann CLA 2008-02-27 06:19:16 EST
a. You can see from the dialog image and from the dialog title if this is an error , warning or info.

I suggest you to have a look at other error or warning dialogs, for example: http://usability.kde.org/hig/current/windows-dialogs.php
or how the dialogs looked in older Eclipse releases.
Comment 3 Krzysztof Daniel CLA 2008-02-27 11:06:22 EST
Created attachment 90876 [details]
Solution proposal

Martin, 

does this look better for you?

Message 'see the details' appears if there is no additional information passed with StatusAdapter. I think I will remove during c fixing.
Comment 4 Krzysztof Daniel CLA 2008-02-27 11:11:46 EST
Created attachment 90879 [details]
Patch
Comment 5 Krzysztof Daniel CLA 2008-02-27 11:11:49 EST
Created attachment 90880 [details]
mylyn/context/zip
Comment 6 Martin Aeschlimann CLA 2008-02-27 11:28:51 EST
Looks better! I would use the following wording for the second sentence:

See 'Details' for more information

Also note that we should always use single quotes, not double quotes.

This is probably a bug in the status:
An internal error occurred during: 'Test Job'
Comment 7 Krzysztof Daniel CLA 2008-02-28 04:33:26 EST
Created attachment 90979 [details]
Patch with changed message

Details message improved. 
Double quotes is something that came in StatusAdapter. I will investigate it.
Szymon, 
could you review the patch?
Comment 8 Szymon Brandys CLA 2008-02-28 08:41:42 EST
Created attachment 90993 [details]
Screenshot with the prev dialog

(In reply to comment #7)
If the problem occurs in a job, we should have both the job name (with its timestamp when available) and the problem summary in the dialog. See the screenshot.
Comment 9 Krzysztof Daniel CLA 2008-02-29 04:56:47 EST
Created attachment 91132 [details]
new solution proposal

initial draft of what will be displayed is available on http://wiki.eclipse.org/Platform_UI_Error_Handling#New_StatusDialog
Comment 10 Krzysztof Daniel CLA 2008-02-29 04:57:55 EST
Created attachment 91133 [details]
Updated patch [API changed]
Comment 11 Martin Aeschlimann CLA 2008-02-29 05:43:42 EST
comment 9:

Again, I think the word 'Error' needs to be avoided. The rule is to avoid 'drastic' words. Especially as the dialog doesn't understand how it is used.

'Job 'Java Search' has encountered a problem.'

I would also align the message (Element 'A' does not exist anymore) with the first line (both on the right side of the image).

If there is a time of error (like in comment 8), maybe we could only show it in the details? I don't think it's that interesting to justify it on the first line (it's also very long).

Adding Tod as cc.
Comment 12 Szymon Brandys CLA 2008-02-29 05:58:27 EST
(In reply to comment #11)
> comment 9:
> 
> Again, I think the word 'Error' needs to be avoided. The rule is to avoid
> 'drastic' words. Especially as the dialog doesn't understand how it is used.
> 
> 'Job 'Java Search' has encountered a problem.'

I agree with Martin. However the job framework passes only IStatus.ERRORs to the status handling. So the message is correct.

As Martin mentioned before, the icon shows what's the severity. The message can use less 'drastic' ;-) words.

> 
> I would also align the message (Element 'A' does not exist anymore) with the
> first line (both on the right side of the image).

I agree.

> If there is a time of error (like in comment 8), maybe we could only show it in
> the details? I don't think it's that interesting to justify it on the first
> line (it's also very long).

Right. If there is only one error in the dialog, the details part is the right place to show the timestamp. However I would leave the timestamp in the list of problems in case of more problems in the dialog.  

Comment 13 Krzysztof Daniel CLA 2008-02-29 06:55:59 EST
Created attachment 91158 [details]
indented second line, error replaced with problem

how about now?
Comment 14 Martin Aeschlimann CLA 2008-02-29 07:16:19 EST
Looks good! I agree with the comments in comment 12.

Maybe without the empty line between the two lines?

There are not 'Details' in this scenario (no extra messages, no date). Maybe we should removing or disabling the button then?

Thanks for all the efforts!
Comment 15 Martin Aeschlimann CLA 2008-02-29 07:22:58 EST
Created attachment 91165 [details]
long error dialog

BWT, I also noted that dialogs can get very long when the message is long. Make sure the label wraps...
Comment 16 Krzysztof Daniel CLA 2008-02-29 07:51:34 EST
Created attachment 91172 [details]
First and second message are much closer now

For wrapping I have bug 220609 and 220758. I will fix them as soon as I will have displayed information relatively stabilized.
Comment 17 Krzysztof Daniel CLA 2008-02-29 08:04:44 EST
Created attachment 91173 [details]
Patch
Comment 18 John Arthorne CLA 2008-02-29 12:11:00 EST
The word "Job" should not appear in the UI - this is a technical detail that we have always been very careful not to put in user-oriented messages. For example the progress view always uses the term "operation". In this case, I think you can just say:

'Java Search' has encountered a problem.

I.e., just remove the word "job".
Comment 19 Szymon Brandys CLA 2008-03-03 05:22:46 EST
Created attachment 91339 [details]
Patch reviewed

Krzysztof please mark patches that are obsolete appropriately.

I removed references in Javadoc to ErrorDialog and TitleAreaDialog that are not valid. Moreover I changed modifiers of some methods to private since they should not be visible.

Please, update javadocs in WorkbenchStatusDialog and remove final modifiers. This class is not intended to be subclassed so the modifiers are not necessary.
Comment 20 Krzysztof Daniel CLA 2008-03-03 08:47:26 EST
Created attachment 91363 [details]
Two more 'final' removed
Comment 21 David Henderson CLA 2008-03-03 11:09:30 EST
Just wanted to add my 2 cents.  I haven't seen the proposed solutions yet, but I wanted to be sure it's not forgotten that the Jobs API is an important part of RCP applications as well.  So comments on the bug about the information presented to the user being non-technical (up-front anyway) is extremely important to me- it really depends on the audience, for Eclipse users we're mostly technical; for RCP users, they're mostly non-technical (at least not w/ Eclipse).
Comment 22 Krzysztof Daniel CLA 2008-03-05 05:31:24 EST
Szymon released last patch today 5th March 2008.
Comment 23 Krzysztof Daniel CLA 2008-03-28 08:23:11 EDT
28-03-2008 verified using described test scenario