Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » TableViewer CellEditor
TableViewer CellEditor [message #7837] Tue, 19 May 2009 11:58 Go to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I created a TableViewer and set an editing support to it in order to edit
only one column.
The cell editor can appear only if I selected the element in the first
column of the line.

Otherwise, I can only select element in the first column.

Why did I have this strange behavior?

When I try to debug I noticed that the method ColumnViewer.getCell(point)
always return null if the cell is not in the first column or the first
cell of the same line is not selected.

Some context :
Eclipse 3.4.2
JFace 3.4.2
Windows XP
the tableViewer is in an ExpandBar wgich is in a view.


Thanks for your help


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: TableViewer CellEditor [message #7858 is a reply to message #7837] Tue, 19 May 2009 12:14 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Looks like you created you TableViewer *without* SWT.FULL_SELECTION and
then SWT in Win32 is not sending the appropriate coordinates.

Tom

Aurelien Pupier schrieb:
> Hi,
>
> I created a TableViewer and set an editing support to it in order to
> edit only one column.
> The cell editor can appear only if I selected the element in the first
> column of the line.
>
> Otherwise, I can only select element in the first column.
>
> Why did I have this strange behavior?
>
> When I try to debug I noticed that the method
> ColumnViewer.getCell(point) always return null if the cell is not in the
> first column or the first cell of the same line is not selected.
>
> Some context :
> Eclipse 3.4.2
> JFace 3.4.2
> Windows XP
> the tableViewer is in an ExpandBar wgich is in a view.
>
>
> Thanks for your help
>
Re: TableViewer CellEditor [message #7879 is a reply to message #7858] Tue, 19 May 2009 12:25 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

ok, it was that...
I thought that I have already tried that but it finally seems that not.

thanks a lot for the answer and the response time.

Tom Schindl wrote:

> Hi,

> Looks like you created you TableViewer *without* SWT.FULL_SELECTION and
> then SWT in Win32 is not sending the appropriate coordinates.

> Tom

> Aurelien Pupier schrieb:
>> Hi,
>>
>> I created a TableViewer and set an editing support to it in order to
>> edit only one column.
>> The cell editor can appear only if I selected the element in the first
>> column of the line.
>>
>> Otherwise, I can only select element in the first column.
>>
>> Why did I have this strange behavior?
>>
>> When I try to debug I noticed that the method
>> ColumnViewer.getCell(point) always return null if the cell is not in the
>> first column or the first cell of the same line is not selected.
>>
>> Some context :
>> Eclipse 3.4.2
>> JFace 3.4.2
>> Windows XP
>> the tableViewer is in an ExpandBar wgich is in a view.
>>
>>
>> Thanks for your help
>>


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: TableViewer CellEditor [message #481360 is a reply to message #7879] Thu, 20 August 2009 15:52 Go to previous message
Scott Pelton is currently offline Scott PeltonFriend
Messages: 81
Registered: July 2009
Member
This does not work for me (we have been using full select on the table
viewer since day one). We see the problem only on XP.... using either RCP
3.4.1 or RCP 3.5.

see my post:
http://www.eclipse.org/newsportal/article.php?id=483&gro up=eclipse.platform.jface#483
Previous Topic:Syntax Coloring
Next Topic:OwnerDrawLabelProvider -> set other things than text
Goto Forum:
  


Current Time: Thu Mar 28 08:42:59 GMT 2024

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

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

Back to the top