Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 96373 - [ErrorHandling] ErrorDialog details area becomes huge with multi-line strings
Summary: [ErrorHandling] ErrorDialog details area becomes huge with multi-line strings
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.8 M5   Edit
Assignee: Krzysztof Daniel CLA
QA Contact: Susan McCourt CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-23 17:31 EDT by Jared Burns CLA
Modified: 2012-02-28 08:51 EST (History)
5 users (show)

See Also:


Attachments
Test_1.0.0.jar (2.72 KB, application/octet-stream)
2005-05-23 17:36 EDT, Jared Burns CLA
no flags Details
Screenshot of new status dialog (18.01 KB, image/png)
2008-04-23 05:55 EDT, Krzysztof Daniel CLA
no flags Details
Fix (2.19 KB, patch)
2008-08-27 07:04 EDT, Krzysztof Daniel CLA
no flags Details | Diff
mylyn/context/zip (7.43 KB, application/octet-stream)
2008-08-27 07:04 EDT, Krzysztof Daniel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2005-05-23 17:31:04 EDT
Build 20050520
Linux-GTK

On Linux-GTK, displaying a MultiStatus with a message containing newlines makes
the ErrorDialog way too tall.

This seems to be happening because ErrorDialog multiplies the vertical height of
the first item in the List of the details area times 7 to create the total List
height. Because List items on GTK grow in height to correctly display multi-line
Strings, the first item in the list can actually be as tall as many lines of
text. This can easily create a dialog that is thousands of pixels tall.
Comment 1 Jared Burns CLA 2005-05-23 17:36:12 EDT
Created attachment 21606 [details]
Test_1.0.0.jar

Here's a simple test plugin that demonstrates the problem. This doesn't show up
on Win32 because the Win32 List can't handle newlines. It just replaces
newlines with junk characters and squeezes the text onto a single line.
Comment 2 Susan McCourt CLA 2008-02-26 12:41:15 EST
I was just reviewing potential 3.4 bugs and noticed this one.  Moving to Szymon as he is working on ErrorHandling issues.  

Sorry this lingered in my box for so long.  Mea culpa.
Comment 3 Krzysztof Daniel CLA 2008-04-23 05:55:15 EDT
Created attachment 97181 [details]
Screenshot of new status dialog
Comment 4 Szymon Brandys CLA 2008-06-09 07:58:16 EDT
(In reply to comment #3)
> Created an attachment (id=97181) [details]
> Screenshot of new status dialog
> 

The issue is fixed in the new status dialog. However it can still exist in ErrorDialog.

Comment 5 Krzysztof Daniel CLA 2008-08-27 07:04:42 EDT
Created attachment 111054 [details]
Fix

I have used the same mechanism that is used in WorkbenchStatusDialog manager. We cannot rely on item height because it may vary on linux.

When opening the details the height of the dialog can only be increased, and while closing - decreased.
Comment 6 Krzysztof Daniel CLA 2008-08-27 07:04:46 EDT
Created attachment 111055 [details]
mylyn/context/zip
Comment 7 Dani Megert CLA 2008-10-01 05:32:04 EDT
This bug should be retargeted to 3.4.2 or 3.5.
Comment 8 Szymon Brandys CLA 2008-10-02 05:19:28 EDT
(In reply to comment #7)
> This bug should be retargeted to 3.4.2 or 3.5.

It was moved to 3.4.1 by accident and it's not critical to have it in 3.4.2. I think that 3.5 is more reasonable target.

We've been waiting for a comment from Jared though.

Comment 9 Jared Burns CLA 2008-10-02 10:51:09 EDT
(In reply to comment #8)
> We've been waiting for a comment from Jared though.
> 
Did someone ask me a question?
Comment 10 Boris Bokowski CLA 2009-05-06 16:48:38 EDT
Removing 3.5 target milestone. We are in the end-game now. Please have a look and decide if this should be targeted at 3.6.
Comment 11 Krzysztof Daniel CLA 2011-12-30 14:31:17 EST
I have updated the patch (copyright and default dialog height) and released the patch.
Comment 12 Dani Megert CLA 2012-01-05 06:29:41 EST
(In reply to comment #11)
> I have updated the patch (copyright and default dialog height) and released the
> patch.

You only committed the change to 'master' which is the 4.x dev stream.  You also need to cherry-pick the change into the 'R3_development' branch.
Comment 13 Krzysztof Daniel CLA 2012-01-06 09:44:05 EST
It should be fine now.

commit e36d4279dedd9c173d2a1e976c877eaebaac94b2
Author: cdaniel <krzysztof.daniel@gmail.com> 2011-12-30 20:07:11
Committer: Krzysztof Daniel <kdaniel@redhat.com> 2012-01-06 15:37:29
Parent: b5e377f52a1c0bfb4471a2985ed943df45c8904f (Report incompatible environment as 'Error')
Branches: R3_development
Comment 14 Paul Webster CLA 2012-01-06 15:54:16 EST
(In reply to comment #13)
> It should be fine now.
> 
> commit e36d4279dedd9c173d2a1e976c877eaebaac94b2
> Author: cdaniel <krzysztof.daniel@gmail.com> 2011-12-30 20:07:11
> Committer: Krzysztof Daniel <kdaniel@redhat.com> 2012-01-06 15:37:29
> Parent: b5e377f52a1c0bfb4471a2985ed943df45c8904f (Report incompatible
> environment as 'Error')
> Branches: R3_development

Did you push?  I can't see that commit in R3_development.

PW
Comment 15 Dani Megert CLA 2012-01-07 03:34:47 EST
(In reply to comment #14)
> (In reply to comment #13)
> > It should be fine now.
> > 
> > commit e36d4279dedd9c173d2a1e976c877eaebaac94b2
> > Author: cdaniel <krzysztof.daniel@gmail.com> 2011-12-30 20:07:11
> > Committer: Krzysztof Daniel <kdaniel@redhat.com> 2012-01-06 15:37:29
> > Parent: b5e377f52a1c0bfb4471a2985ed943df45c8904f (Report incompatible
> > environment as 'Error')
> > Branches: R3_development
> 
> Did you push?  I can't see that commit in R3_development.
Me neither.
Comment 16 Krzysztof Daniel CLA 2012-01-08 15:25:49 EST
Now the commit is visible here:
http://git.eclipse.org/c/platform/eclipse.platform.ui.git/?h=R3_development

I had a local branch that did not track proper remote branch, and the cherry-pick was noop, so was a push.