Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [Viewers] Re: Widgets and style bits
[Viewers] Re: Widgets and style bits [message #325465] Tue, 19 February 2008 15:11 Go to next message
Eclipse UserFriend
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 15:53 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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
------------------------------------------------------------ --------
Previous Topic:SWT FileDialog.setFilterPath Problem on Linux
Next Topic:FileDialog Tree (Browse Workspace)
Goto Forum:
  


Current Time: Thu Jun 27 21:07:20 GMT 2024

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

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

Back to the top