Skip to main content


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 11:49 Go to next message
Alexey Romanov is currently offline Alexey RomanovFriend
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 21:18 Go to previous message
Tim  is currently offline Tim Friend
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:TreeViewer with Columns
Next Topic:Using EditingSupport Class with the table viewer
Goto Forum:
  


Current Time: Thu Sep 19 05:46:33 GMT 2024

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

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

Back to the top