Bug 288767 - [statushandling]no option to wrap error text
Summary: [statushandling]no option to wrap error text
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M4   Edit
Assignee: Krzysztof Daniel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 115432
Blocks: 288765
  Show dependency tree
 
Reported: 2009-09-07 12:42 EDT by Krzysztof Daniel CLA
Modified: 2009-12-10 06:52 EST (History)
3 users (show)

See Also:


Attachments
Solution preview (25.59 KB, image/jpeg)
2009-10-11 11:39 EDT, Krzysztof Daniel CLA
no flags Details
A patch (1.05 KB, patch)
2009-10-11 11:40 EDT, Krzysztof Daniel CLA
no flags Details | Diff
mylyn/context/zip (2.80 KB, application/octet-stream)
2009-10-11 11:40 EDT, Krzysztof Daniel CLA
no flags Details
No wrapping (13.25 KB, image/png)
2009-10-13 02:32 EDT, Krzysztof Daniel CLA
no flags Details
Adoption of setLineWrapIndent (1.69 MB, application/octet-stream)
2009-11-02 06:53 EST, Krzysztof Daniel CLA
no flags Details
No indent in the first paragraph. (28.82 KB, image/png)
2009-11-03 04:19 EST, Krzysztof Daniel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Daniel CLA 2009-09-07 12:42:47 EDT

    
Comment 1 Krzysztof Daniel CLA 2009-10-11 11:39:05 EDT
Created attachment 149318 [details]
Solution preview

This kind of wrapping is requested?
Comment 2 Krzysztof Daniel CLA 2009-10-11 11:40:02 EDT
Created attachment 149319 [details]
A patch
Comment 3 Krzysztof Daniel CLA 2009-10-11 11:40:06 EDT
Created attachment 149320 [details]
mylyn/context/zip
Comment 4 Susan McCourt CLA 2009-10-12 16:52:18 EDT
Christopher, do you have a screen snap of what it looked like before the proposed wrapping (for side by side comparison)...was it just a horizontal scrollbar and very wide text?  Depending on the error, and how useful the error detail text is worded, I can see how wrapping might make it look worse.  I'm wondering if we want to give the user some dynamic control here.
Comment 5 Krzysztof Daniel CLA 2009-10-13 02:32:36 EDT
Created attachment 149407 [details]
No wrapping
Comment 6 Krzysztof Daniel CLA 2009-10-13 02:54:57 EDT
(In reply to comment #4)
> Depending on the error, and how useful the error
> detail text is worded, I can see how wrapping might make it look worse. 

Actually I'd expect that wrapping preserves paragraph indentation, I mean

      very long message
      
should be wrapped as

     very 
     long
     message

and not as
     very
long message

But that kind of improvement either complicated text formatting. This is actually something that I'd like to avoid.
Comment 7 Susan McCourt CLA 2009-10-19 19:15:42 EDT
(In reply to comment #6)
> (In reply to comment #4)
> > Depending on the error, and how useful the error
> > detail text is worded, I can see how wrapping might make it look worse. 
> 
> Actually I'd expect that wrapping preserves paragraph indentation, I mean
> 
>       very long message
> 
> should be wrapped as
> 
>      very 
>      long
>      message
> 
> and not as
>      very
> long message
> 
> But that kind of improvement either complicated text formatting. This is
> actually something that I'd like to avoid.

I would expect the same thing.  The current wrapping looks rather unpolished.  Can we accomplish something by using StyledText and setLineIndent(...)?  If we could get the indentation correct, then I think we could just wrap it and not worry about providing a dynamic option to unwrap.
Comment 8 Krzysztof Daniel CLA 2009-10-20 06:14:27 EDT
setLineIndent indents only first line. It gaves the same messy effect.

I am afraid this issue cannot be solved without dirty hacking unless bug 265591 is fixed.
Comment 9 Krzysztof Daniel CLA 2009-10-21 06:48:42 EDT
Removing milestone as this bug will not be fixed until it will be possible to indent whole paragraphs,
Comment 10 Susan McCourt CLA 2009-10-21 11:49:33 EDT
(In reply to comment #9)
> Removing milestone as this bug will not be fixed until it will be possible to
> indent whole paragraphs,

Christopher, I wonder if we should release the wrapping as currently provided by StyledText.  That should surely raise the visibility of the blocking bug?  What do you think?
Comment 11 Krzysztof Daniel CLA 2009-10-22 05:53:40 EDT
I am afraid it is not a good solution. Note that the indent level is used for marking nesting level. Wrapping in current shapes makes that information unreadable. 

I am sure we will get a lot of bug reports if the patch is released now. As per information received from Felipe, chances for getting blocker fixed are low. If I have time I'll try to at least recognize if I am able to provide a patch for StyledText.
Comment 12 Krzysztof Daniel CLA 2009-11-02 06:53:55 EST
Created attachment 151057 [details]
Adoption of setLineWrapIndent

Two examples:

LEFT indenting first line a little bit more than others
RIGHT consistent indentation for all lines in a paragraph

Which is better? (I'd choose the first one).
Comment 13 Susan McCourt CLA 2009-11-02 12:12:25 EST
I agree.  I like the small indent.  More readable.  Two suggestions/questions:

1-Can we get rid of the small indent for the very first one, it looks like a bug on first glance.

2 - Is that first "paragraph" always going to be a duplication of the message text in the top of the dialog?  If so, why do we show it at all?  We could start with the NullPointerException.  As a client, I've gotten bugs that say "why do you repeat the error information?" and worse, if there is no more detail than what is shown up top, it is annoying to open details and get a rehash of what you've already seen.  (Maybe I should open a separate bug on that?)
Comment 14 Krzysztof Daniel CLA 2009-11-03 03:48:32 EST
1. Yes.
2. I have opened new bug 294026.
Comment 15 Krzysztof Daniel CLA 2009-11-03 04:19:45 EST
Created attachment 151166 [details]
No indent in the first paragraph.
Comment 16 Krzysztof Daniel CLA 2009-11-03 04:40:40 EST
Patch released on 2009-11-03
Comment 17 Krzysztof Daniel CLA 2009-12-10 06:52:51 EST
verified. Wrapping works correctly.