|
Re: How to add a TableItem to a Table managed by TableViewer [message #294264 is a reply to message #294252] |
Tue, 08 November 2005 13:36 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: johnny.xxxxxxxxx.com
AL wrote:
> Hi,
> I have a TableViewer (more precisely a CheckboxTableViewer) with 3
> columns and the cells in the columns are associated with CellEditors.
> I see that TableViewer.doUpdateItem(...) will nicely add a TableItem
> with my cell model so that the content and label provider can be called.
> But, doUpdateItem(...) is a protected method and CheckboxTableViewer()
> is not meant to be sub-classed! What can I do to add a new item into
> the table WITHOUT doing a TableViewer.setInput()?????
> Thanks!Hi,
Seems like the answer to the question is that you should call the add
method on the tree viewer. If you want to refresh an item then the refresh
method should do the trick. With the refresh method you can refresh the
specific item that has changed or you can refresh the whole table.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03194 seconds