[Viewers] Re: Widgets and style bits [message #325465] |
Tue, 19 February 2008 10:11  |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Adolfo Correia wrote:
> Thanks for your reply Manuel, but right now I don't have any problems
> with styles.
>
> I just had one, though, that took me half a day of work to figure out. I
> was trying to make an editable table using a TableViewer, and it turns
> out (at least it seems to me) that the SWT.FULL_SELECTION style must be
> set in the table. Otherwise, the CellEditors don't work.
>
> This is rather unintuitive to me (what does selection have to do with
> edition?). That's why I thought a style reference table would be
> helpful. With this kind of documentation I think I could prevent further
> style problems in the future.
I've noticed that before, too and never took the time to figure out why.
I'm copying this thread to eclipse.platform where JFace questions
usually get answered.
Eric
|
|
|
Re: [Viewers] Re: Widgets and style bits [message #325472 is a reply to message #325465] |
Tue, 19 February 2008 10:53  |
Eclipse User |
|
|
|
Eric Rizzo schrieb:
> Adolfo Correia wrote:
>> Thanks for your reply Manuel, but right now I don't have any problems
>> with styles.
>>
>> I just had one, though, that took me half a day of work to figure out.
>> I was trying to make an editable table using a TableViewer, and it
>> turns out (at least it seems to me) that the SWT.FULL_SELECTION style
>> must be set in the table. Otherwise, the CellEditors don't work.
>>
>> This is rather unintuitive to me (what does selection have to do with
>> edition?). That's why I thought a style reference table would be
>> helpful. With this kind of documentation I think I could prevent
>> further style problems in the future.
>
> I've noticed that before, too and never took the time to figure out why.
> I'm copying this thread to eclipse.platform where JFace questions
> usually get answered.
well the reason is simply that we don't get the mouse position on some
platforms (e.g. win32) if the SWT.FULL_SELECTION bit is not set and
hence to don't know where to popup the editor.
I think there there was a bug Steve where menntionned that they may have
a solution in 3.4 but I can find the bug report.
Tom
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Powered by
FUDForum. Page generated in 0.03441 seconds