Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » create TreeColumns through Content/Label provider
create TreeColumns through Content/Label provider [message #461692] Tue, 27 September 2005 10:33
Rajeev Sudra is currently offline Rajeev SudraFriend
Messages: 30
Registered: July 2009
Member
Is there a way to force JFace code to create TreeColumns that map to my
input object as described by the content and label providers?

I want to avoid doing:

for (int i = 0; i < COLUMN_HEADERS.length; i++) {
TreeColumn tc = new TreeColumn(getTreeViewer().getTree(), SWT.NONE, i);
tc.setText(COLUMN_HEADERS[i]);
}
getTreeViewer().setColumnProperties(COLUMN_HEADERS);

If not, when I do that above, the items in the first column are selectable
(for focus) but items in the second column are not. How do I make
selection focus available on the second column?

Cheers
Raj
Previous Topic:unsetting images on the TreeViewer
Next Topic:Progress Monitor (Job APIs)
Goto Forum:
  


Current Time: Wed Aug 21 10:08:38 GMT 2019

Powered by FUDForum. Page generated in 0.01923 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top