Community
Participate
Working Groups
It is not possible to reorder and resize the columns of table and tree results in MAT using just the keyboard.
The described ConfigureColumns class in Bug 38662 can help.
I submitted some changes using the CompareColumns.forTree() and forTable() methods. Now the query context menu contains also a "Configure Columns..." entry next to the "Edit Filter" entry.
This fix uses org.eclipse.jface.util.ConfigureColumns forTable() and forTree() but ConfigureColumns was added in Eclipse 3.5. In http://wiki.eclipse.org/index.php?title=MemoryAnalyzer/Contributor_Reference we say that Eclipse 3.4 is suitable, and some consumers of MAT such as IBM Support Assistant are Eclipse 3.4 based.
Thanks for the hint. I also found this and was wondering if this restriction is OK. If the IBM Support Assistent is 3.4. based, then I think the change is not OK. I have reopened the bug. We should probably search for an alternative solution then. Any suggestions? Having in mind that we have to add some further context menu (see bug 307396) I suggest that we add "Columns ..." at the bottom of the context menu, and then the necessary sub-nodes - "Edit filter", "Sort by ...", and "Configure columns...". Back to configuring the size - shall we implement something on our own, or rather leave this out for the moment?
I have for now reverted my changes which use the ConfigureColumns class. I left parts of the coding and marked the commented code with: /* temporarily removed because of dependency on 3.5, see comments 3-5 in bug 307031 */
Bug 322508 makes this unnecessary.