TableViewer CellEditor [message #7837] |
Tue, 19 May 2009 11:58 |
|
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 #7879 is a reply to message #7858] |
Tue, 19 May 2009 12:25 |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03702 seconds