Bug 57536 - [Markers] Provide some way to show/hide columns in the problems view
Summary: [Markers] Provide some way to show/hide columns in the problems view
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
: 8850 71117 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-06 01:08 EDT by Cagatay Kavukcuoglu CLA
Modified: 2009-08-30 02:10 EDT (History)
4 users (show)

See Also:


Attachments
Changes org.eclipse.ui.views.markers.internal.TableView to respect zero-width columns during save & restore (1.35 KB, patch)
2005-06-18 16:46 EDT, Cagatay Kavukcuoglu CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cagatay Kavukcuoglu CLA 2004-04-06 01:08:53 EDT
Eclipse 3.0 M8, Windows XP

Make sure the views have existing items. Resize and/or hide (resize until zero)
the columns. Restart the workbench. Observe that column widths for Problems view
have been collapsed so that the total column width is about half the view width.
Observe that Tasks view have defaulted the column widths, including making
hidden columns visible. Check the plugin metadata area for
org.eclipse.ui.workbench to see that view state was persisted correctly (as far
as I can see).
Comment 1 Ilja Brest CLA 2004-09-30 05:12:02 EDT
pls look on bug 71489 - if the problem view was not active at shutdown, it will 
be restored correctly on the next start
Comment 2 Cagatay Kavukcuoglu CLA 2005-06-18 13:59:51 EDT
It looks like 3.1 RC2 and RC3 have improved this behavior; columns in marker
views are restored correctly regardless of whether they were the active view or
not at the time of shutdown. The remaining issue is the handling of hidden
columns. These are restored to a default (or best fit?) width instead of
remaining hidden on the next startup. 

I usually hide the folder column in Problems and Tasks views since the file name
is enough to give an idea of where the problem is. It bugs me that Eclipse
insists on overriding my preference and show the hidden folder column after a
restart. I suspect the fix is simple, probably just apply the zero width read
from the workbench state instead of trying to be smart and make the column visible.
Comment 3 Cagatay Kavukcuoglu CLA 2005-06-18 16:46:26 EDT
Created attachment 23508 [details]
Changes org.eclipse.ui.views.markers.internal.TableView to respect zero-width columns during save & restore

This is a simple patch to get marker-based views to respect zero column width
set by the user. It makes two one-line changes, in getColumnData method to
correct save state and in getSavedColumnData method to correct restore state.
Comment 4 Stefan Xenos CLA 2005-06-27 13:53:01 EDT
Columns with zero width are reset intentionally.

There was an old bug (bug 75945 - really a dupe of this one) that caused columns
to be incorrectly saved with zero size. This means that there are a whole pile
of workspaces persisted with zero column size, even though this was not desired
by the user.

This caused bug 86329: the columns would seem to disappear when you try to load
an old workspace with a copy of Eclipse contiaining the fix for bug 75945. This
causes the columns to seem to disappear entirely. The check for zero size is
there to fix this (also, on GTK it is impossible to resize a 0-size column).

This patch will cause a regression in bug 86329.

The fix is to provide another means to show/hide columns. (Like an "edit
columns" dialog).

Reclassifying PR, since the original problem reported here is fixed.
Comment 5 Tod Creasey CLA 2005-11-03 11:27:17 EST
*** Bug 8850 has been marked as a duplicate of this bug. ***
Comment 6 Tod Creasey CLA 2006-04-07 11:16:20 EDT
There are currently no plans to work on this feature
Comment 7 Tod Creasey CLA 2006-04-07 12:00:17 EDT
*** Bug 71117 has been marked as a duplicate of this bug. ***
Comment 8 Denis Roy CLA 2009-08-30 02:10:50 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.