Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361391 - TreeColumn - can't drag/drop column headers except to reorder
Summary: TreeColumn - can't drag/drop column headers except to reorder
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 09:00 EDT by scb CLA
Modified: 2019-11-14 03:36 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description scb CLA 2011-10-19 09:00:38 EDT
Build Identifier: M20110909-1335

I'm using the Treeviewer like a pivot table in Excel.  The parent nodes of a tree are like pivots - column 1 shows a categorization field value and the other columns summarize the values in the children nodes.  There can be many different "pivot" levels and it is customizable just like a pivot table in excel.  We allow the users to drag and drop nodes of the tree around to arrange the structure of the tree any way they like.  If level 1 of the tree is a pivot for "Field A" and the user wants "Field B" to be level 1, he can just drag a node for "Field B" above the node for "Field A" and it does what he wants.

What I want to be able to do is what Excel allows you to do for a pivot table. In a pivot table, I can drag a column header over to the "pivot" list and it modifies the structure of the table, now summarizing by the column that just became a pivot.  I'd like to be able to drag a Treeviewer Column header and drop it on the first column of the tree to edit the structure of my tree

example:

Let's say it's financial data and the current tree structure has Sector as a parent and child nodes for each item in each sector sector. So maybe there are parent nodes for Sector A, Sector B, Sector C, etc with child nodes for items in each sector.

Now let's say Subsector is a column. Maybe the user wants to add a SubSector node to the tree structure, under the Sector level. Dragging the SubSector column header and dropping it on a Sector node could tell the code to create a SubSector Grouping below the Sector level and refresh the tree structure, now showing the data grouped by both Sector and SubSector. 

I can't implement this because I'm not seeing how I can drag a TreeColumn and drop it anywhere other than moving it around to reorder the column.  

Can a future version of Eclipse allow more support for dragging a TreeColumn? Could it be given the same dnd functionality as a TreeItem?

If this already exists, I apologize, but I didn't see it..

Thanks

Reproducible: Always
Comment 1 scb CLA 2011-10-19 09:02:57 EDT
clarification:
when I said "I'd like to be able to drag a Treeviewer Column header and
drop it on the first column of the tree to edit the structure of my tree" I meant I want to drag a TreeColumn header and drop it on a row in the first column.
Comment 2 Lars Vogel CLA 2019-11-14 03:36:45 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.