Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » adding multiple columns in ListSelectionDialog(How to add multiple columns in ListSelectionDialog in eclipse?)
adding multiple columns in ListSelectionDialog [message #779044] Sat, 14 January 2012 09:03
Noopur Gupta is currently offline Noopur Gupta
Messages: 2
Registered: January 2012
Junior Member
I am creating a dialog by extending org.eclipse.ui.dialogs.ListSelectionDialog

While overriding createDialogArea(Composite parent) if I call super.createDialogArea(parent) and create 3 columns in the table viewer, the columnCount of org.eclipse.swt.widgets.Table is set to 1 by default. Hence, the labelprovider's getText() is called only for column with index 0 and I don't get text in other 2 columns.

How can I create/add multiple columns in createDialogArea(Composite parent) so that it works correctly?
Previous Topic:JFace close button
Next Topic:How to display a button in SWT tableviewer using LabelProvider/ContentProvider
Goto Forum:
  


Current Time: Wed Jul 23 16:21:30 EDT 2014

Powered by FUDForum. Page generated in 0.01473 seconds