Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323891

Summary: [api][build] persist column sizes in Builds view
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Shawn Minto <shawn.minto>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 Keywords: noteworthy
Version: unspecified   
Target Milestone: 0.7   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 324259    
Bug Blocks:    
Attachments:
Description Flags
initial patch
none
mylyn/context/zip
none
mylyn/context/zip none

Description Steffen Pingel CLA 2010-08-28 17:15:12 EDT
The size of the table columns is lost when the workbench is restarted. It would be nice if the columns were configurable and if the configuration was persisted.
Comment 1 Steffen Pingel CLA 2010-08-28 17:15:26 EDT
Shawn, can you help out with that?
Comment 2 Steffen Pingel CLA 2010-08-28 17:15:49 EDT
Also, sorting should be supported.
Comment 3 Shawn Minto CLA 2010-09-01 11:44:37 EDT
I should be able to help with this.  We should also look at merging the Table and Tree viewer support that we have since there will be a lot of duplicated code.
Comment 4 Shawn Minto CLA 2010-09-01 13:38:19 EDT
Created attachment 177988 [details]
initial patch

Steffen, here is an initial patch for adding this support and generalizing it from the TableViewerSupport.  It would be great if you could have a look over it.  Also, I need to do some testing still with the attachments table to make sure that I didn't break anything during the refactoring.
Comment 5 Shawn Minto CLA 2010-09-01 13:38:22 EDT
Created attachment 177989 [details]
mylyn/context/zip
Comment 6 Steffen Pingel CLA 2010-09-01 13:46:07 EDT
Looks great! The only suggestion I have is to make all methods and super classes of TableViewerSupport and TreeViewerSupport that are not accessed by client code package protected since they don't need to be API.
Comment 7 Shawn Minto CLA 2010-09-01 17:05:50 EDT
I have changed all of the methods to be package protected or private for now.  This is now committed and we now have both table and tree support for column handling.
Comment 8 Shawn Minto CLA 2010-09-01 17:05:51 EDT
Created attachment 178006 [details]
mylyn/context/zip
Comment 9 Steffen Pingel CLA 2010-09-01 22:12:46 EDT
I have the impression that the changes broke sorting for attachments, e.g. sorting the attachments on Bug 315921 by creation date does not look right to me. Could you take a look?
Comment 10 Steffen Pingel CLA 2010-09-02 00:02:57 EDT
I think this is fixed now. A return statement was missing where the sort column was determined. I simplified the code a bit using generics. Shawn, please check if that makes sense to you.

This is pretty cool stuff :).
Comment 11 Shawn Minto CLA 2010-09-02 11:18:36 EDT
That looks great!  I don't know why I added some generics but not others ;)
Comment 12 Steffen Pingel CLA 2011-01-04 22:24:31 EST
Marking patch obsolete as changes were committed to Mylyn Commons and not Mylyn Builds.