Bug 41800 - Error Log View broken in Eclipse laucnhed using PDE
Summary: Error Log View broken in Eclipse laucnhed using PDE
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M3   Edit
Assignee: Wassim Melhem CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-21 10:07 EDT by Michael Valenta CLA
Modified: 2003-08-22 01:44 EDT (History)
0 users

See Also:


Attachments
Picture of Error log (37.33 KB, image/gif)
2003-08-21 10:09 EDT, Michael Valenta CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Valenta CLA 2003-08-21 10:07:20 EDT
When I am running an Eclipse using the Run-time workbench launcher, the Error 
log view list (on the left) does not draw properly. I will attach a screenshot.
Comment 1 Michael Valenta CLA 2003-08-21 10:09:19 EDT
Created attachment 5815 [details]
Picture of Error log
Comment 2 Wassim Melhem CLA 2003-08-21 12:29:13 EDT
very strange!
You got that using I-20030820?
Comment 3 Michael Valenta CLA 2003-08-21 12:53:21 EDT
Yes but it's been that way for a while. I just haven't reported it.
Comment 4 Wassim Melhem CLA 2003-08-21 15:16:23 EDT
I won't be able to reproduce it or at least speculate what might be causing it 
unless I see the metadata.  Could you please zip up the .metadata directory of 
the "runtime" workspace in question, and either attach it to this bug report 
or directly email it to me.
In the meantime, if you launch on a new workspace, you would definitely not 
encounter this problem.
Comment 5 Michael Valenta CLA 2003-08-21 16:26:28 EDT
Metadata sent in email
Comment 6 Wassim Melhem CLA 2003-08-22 01:44:34 EDT
This was an interesting one.
Here is what was happening:
Upon closing the workbench, what I do is save the widths of the columns in the 
log view's memento, so that the column widths can be restored upon the next 
eclipse launch.
In the metadata that you sent me, I noticed that the column widths of all 4 
columns of the log view are set to 0.
After a little debugging, I realized how this could have occurred: When you 
closed the workbench, the log view had already been explicitly closed by you 
earlier in the session.  So when the method saveMemento was called on the log 
view, all the column widths had a value of 0, and that is the value that was 
saved.
Upons subsequent launching of the workbench, you added the log view and did 
not see the columns as their width was initialized to 0.

When the log view gets initialized now, this case is accounted for.  If the 
saved column width is 0, we give it a reasonable default value.

Aside: the only column which we do not save its width is the first one, i.e. 
the column containing the +/- sign which show up for nested exceptions.  That 
is why that was the only thing visible in your log view.