Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Updating certain columns in a TableViewer
Updating certain columns in a TableViewer [message #330188] Fri, 18 July 2008 15:07 Go to next message
Derek Rea is currently offline Derek ReaFriend
Messages: 14
Registered: July 2009
Junior Member
Hello,

I am wondering how to go about updating the labels of items in my
TableViewer, but only certain columns. For instance, I don't want the
first column's label to be updated, but the rest I do.

As far as I can tell, I think I can do this by using
tableViewer.update(Object, String[]) where the String[] is a list of
properties (columns?) to update. However, I am not sure what goes into
the String[] - are there predefined constants to use? Or are these the
names of my column headers? Something else?

I have not been able to find any examples of tableViewer.update(Object,
String[]) being used when the String[] is not null - if anyone can point
me to one (or more), please do so.

Any help is appreciated.

Thanks,
Derek
Re: Updating certain columns in a TableViewer [message #330195 is a reply to message #330188] Fri, 18 July 2008 16:11 Go to previous messageGo to next message
Derek Rea is currently offline Derek ReaFriend
Messages: 14
Registered: July 2009
Junior Member
My appologies - meant to post this in eclipse.platform.swt. I will do so
now.

Derek
Re: Updating certain columns in a TableViewer [message #330196 is a reply to message #330195] Fri, 18 July 2008 16:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Derek R. wrote:
> My appologies - meant to post this in eclipse.platform.swt. I will do
> so now.

Actually, viewers are part of JFace, not SWT; and JFace questions are
appropriate in this newsgroup.

Eric
Re: Updating certain columns in a TableViewer [message #330577 is a reply to message #330196] Mon, 04 August 2008 12:13 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I answered there on the question the String-array is used e.g. by
filter-concept. We should fix our JavaDoc of the method explaining what
this value is used for. There's no solution for your usecase currently.

Tom

Eric Rizzo schrieb:
> Derek R. wrote:
>> My appologies - meant to post this in eclipse.platform.swt. I will do
>> so now.
>
> Actually, viewers are part of JFace, not SWT; and JFace questions are
> appropriate in this newsgroup.
>
> Eric


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:ComboBoxCellEditor doesn't fireApplyEditorValue()
Next Topic:Default behaviour for find TableItem associated to a TableViewer element
Goto Forum:
  


Current Time: Sun Nov 17 21:21:55 GMT 2024

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

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

Back to the top