Skip to main content



      Home
Home » Eclipse Projects » JFace » TableViewer CellEditor
TableViewer CellEditor [message #7837] Tue, 19 May 2009 07:58 Go to next message
Eclipse UserFriend
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 #7858 is a reply to message #7837] Tue, 19 May 2009 08:14 Go to previous messageGo to next message
Eclipse UserFriend
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 08:25 Go to previous messageGo to next message
Eclipse UserFriend
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
>>
Re: TableViewer CellEditor [message #481360 is a reply to message #7879] Thu, 20 August 2009 11:52 Go to previous message
Eclipse UserFriend
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 May 08 12:26:02 EDT 2025

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

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

Back to the top