Home » Eclipse Projects » Eclipse Platform » TableViewer click behavior
TableViewer click behavior [message #273018] |
Wed, 29 September 2004 23:55  |
Eclipse User |
|
|
|
Originally posted by: bandrews.nospam_bphnx.com
I have a JFace TableViewer created with the Table ctor. I have the content
provider, label provider, TextCellEditors on all the columns, and an
implementation of ICellModifier all connected up. Everything works as
expected, except the behavior of a mouse click. When I mouse click on any
cell (for editing) other than column 0, I am forced to click on the row,
column 0 before clicking on the desired cell.
For example, if the focus is at 0,0 and I want to enter cell 1,2, I am not
allowed until I first enter cell 1,0. Then I can click on 1,2. This is
very strange. How do I get around this? I should be able to enter any cell
with 1 single mouse click.
many thanks,
Barry
|
|
|
Re: TableViewer click behavior [message #273123 is a reply to message #273018] |
Thu, 30 September 2004 12:43   |
Eclipse User |
|
|
|
Originally posted by: bandrews.NO_SPAM_bphnx.com
I figured out what the problem was in case anyone is interested. This is
the kind of strange behavior you will see if you don't use the
SWT.FULL_SELECTION style bit on the Table. Now it works fine!
bandrews wrote:
> I have a JFace TableViewer created with the Table ctor. I have the content
> provider, label provider, TextCellEditors on all the columns, and an
> implementation of ICellModifier all connected up. Everything works as
> expected, except the behavior of a mouse click. When I mouse click on any
> cell (for editing) other than column 0, I am forced to click on the row,
> column 0 before clicking on the desired cell.
> For example, if the focus is at 0,0 and I want to enter cell 1,2, I am not
> allowed until I first enter cell 1,0. Then I can click on 1,2. This is
> very strange. How do I get around this? I should be able to enter any cell
> with 1 single mouse click.
> many thanks,
> Barry
|
|
|
Re: TableViewer click behavior [message #280894 is a reply to message #273123] |
Sat, 12 February 2005 00:24   |
Eclipse User |
|
|
|
Originally posted by: nathan.messer.btinternet.com
I'm getting the same problem, that I have to click on the first cell in
a row to then be able to select any other cell. However when I tried
using the SWT.FULL_SELECTION style bit, I then became ONLY able to
select the whole row, and not the particular element I want to edit.
Any pointers appreciated,
Nathan
bandrews wrote:
> I figured out what the problem was in case anyone is interested. This is
> the kind of strange behavior you will see if you don't use the
> SWT.FULL_SELECTION style bit on the Table. Now it works fine!
>
>
>
> bandrews wrote:
>
>
>>I have a JFace TableViewer created with the Table ctor. I have the content
>>provider, label provider, TextCellEditors on all the columns, and an
>>implementation of ICellModifier all connected up. Everything works as
>>expected, except the behavior of a mouse click. When I mouse click on any
>>cell (for editing) other than column 0, I am forced to click on the row,
>>column 0 before clicking on the desired cell.
>
>
>>For example, if the focus is at 0,0 and I want to enter cell 1,2, I am not
>>allowed until I first enter cell 1,0. Then I can click on 1,2. This is
>>very strange. How do I get around this? I should be able to enter any cell
>>with 1 single mouse click.
>
>
>
>>many thanks,
>
>
>>Barry
>
>
>
|
|
|
TableViewer - select one cell only to edit [message #292183 is a reply to message #280894] |
Fri, 30 September 2005 03:42  |
Eclipse User |
|
|
|
Originally posted by: fabian.eberhardt.sap.com
Hi,
I Have a JFace TableViewer, label provider, content provider,
implementation of ICellModifier. With SWT.FULL_SELECTION I am able to
select the whole row. Then I can modifiy every cell in this row.
But I want to select only one cell directly to edit.
Any pointers appreciated
Thanks,
Fabian
|
|
|
Goto Forum:
Current Time: Thu May 15 13:21:14 EDT 2025
Powered by FUDForum. Page generated in 0.48240 seconds
|