| Summary: | [Decorators] Exception handling message in decoration job could be improved | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Michael Valenta <Michael.Valenta> | ||||||||||||
| Component: | UI | Assignee: | Krzysztof Daniel <krzysztof.daniel> | ||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||
| Severity: | normal | ||||||||||||||
| Priority: | P5 | CC: | daniel_megert, Kevin_McGuire, krzysztof.daniel, Tod_Creasey | ||||||||||||
| Version: | 3.2 | Keywords: | helpwanted | ||||||||||||
| Target Milestone: | 3.5 M5 | ||||||||||||||
| Hardware: | PC | ||||||||||||||
| OS: | Windows XP | ||||||||||||||
| Whiteboard: | hasPatch | ||||||||||||||
| Bug Depends on: | 251193 | ||||||||||||||
| Bug Blocks: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Michael Valenta
There are currently no plans to work on this although we would be happy to review a patch Created attachment 110346 [details]
Fix
New StatusHandling facility is used.
Christophe, can you also attach a test? I tried to write a JUnit test but this is quite difficult. In the meantime I have found that status handling was introduced there once and reverted (see bug 169226). Tod, do you remember why the patch was reverted? I'm afraid I don't recall but I suspect it was something to do with the exception being in the UI Thread. There are crash tests already for decorators in the UI test suite - you may want to start from there. The workbench is closed while the status handling animation is proceeding during JUnit test. Created attachment 115371 [details]
tests
Kevin, I am not sure about those tests... any hint?
Created attachment 115915 [details]
Patch with tests
Krzysztof, sorry I never reviewed this. Do you want to just commit it now that you have rights or do you still want me to review? Created attachment 120456 [details]
Fix
I have resigned from introducing SH in the decorators, only updated message as requested. Fix released on 2008-12-15 The new code:
String message = WorkbenchMessages.DecoratorError;
if (decorator != null) {
message += " " +
NLS.bind(WorkbenchMessages.DecoratorWillBeDisabled, //$NON-NLS-1$
decorator.getName());
}
is not correctly NLSed: concatenating strings in code will cause problems for translation and hence mixing NLSed strings with concatenation in code must be avoided.
Created attachment 120545 [details]
Is this better?
Thanks for paying attention!
Yes, this is better. String concatenation removed on 2008-12-16 |