Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Widgets in tables
Widgets in tables [message #540491] Wed, 16 June 2010 07:49 Go to next message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
I've found this old thread from 2006 which said TableViewer would likely support putting arbitrary widgets in table cells in JFace 3.3.

At first I thought that was what CellLabelProvider was supposed to do, and I could just override update(ViewerCell), but ViewerCell doesn't have a setWidget method.

Are the ugly workarounds with TableEditor still needed just to put some buttons into table cells?
Re: Widgets in tables [message #540986 is a reply to message #540491] Thu, 17 June 2010 17:18 Go to previous message
Tim  is currently offline Tim
Messages: 12
Registered: December 2009
Junior Member
I dont know the old thread, but i can give you some tips
for special widgets in the viewer.

You can set the following widgets in a cell:
- BooleanCellEditor
- CheckBoxCellEditor
- DialogCellEditor
- TextCellEditor
etc.

For this topic exist very nice snippets:
- Snippet054NativeControlsInViewers
- Snippet62TextAndDialogCellEditor
- Snippet056BooleanCellEditor
- Snippet048TreeViewerTabWithCheckboxFor3_3
- Snippet034CellEditorPerRowNewAPI

Google for this snippets and you will find directly the pure code.

Hope this hels.
Tim
Previous Topic:How to trigger JFace Databinding validation
Next Topic:ButtonCellEditor
Goto Forum:
  


Current Time: Tue Jul 22 19:45:48 EDT 2014

Powered by FUDForum. Page generated in 0.01640 seconds