Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [JFace] bug in snippet 019
[JFace] bug in snippet 019 [message #333585] Wed, 17 December 2008 19:01 Go to next message
Eclipse UserFriend
There is a bug in snippet 019 where the triggerColumnSelectedColumn method
does not handle the columns being moved.
This won't manifest it self normally since the columns are the same size and
the column position is calculated based on widths.

I have attached a modified Snippet (the file that ends 'WithBug' )that
includes a 3rd column called 'Age'. The width of 'Age' is smaller than the
other columns.

To trigger the bug, move 'Age' into the middle column and then right click
in the left half of the 'Surname' column and add the email column. You'll
see that the addition of column is relative to 'Age' and not to 'Surname'.

I have attached a snippet with a fix (the file that ends 'WithFix' ) in it
that correctly handles column reording.
However, if I move a column into the first column position and add 'Insert
E-mail before' then I encounter a new bug - the column gets created as the
3rd column rather than then the first. I have traced through this with the
debugger and the new column is indeed being added in column 0, but then a
call to v.getTable().getColumnOrder() shows it being ordered 3rd.

Why is there this disconnect between where the column is being added and
where it is appearing?
This is happening on Windows XP. I can't make sense of the OS.SendMessage
calls that underly this stuff. Perhaps someone would try this on Linux or
Mac OS X and let me know if the same issue occurs.

-Patrick



Re: [JFace] bug in snippet 019 [message #333591 is a reply to message #333585] Thu, 18 December 2008 03:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Could you please file a bug against Platform-UI and attach a patch. See
http://wiki.eclipse.org/Platform_UI/How_to_Contribute.

Simply CC me on the bug. I can't incooperate your fix without a bug
report and a patch because of IP and contribution tracking.

Tom

Patrick Radtke schrieb:
> There is a bug in snippet 019 where the triggerColumnSelectedColumn method
> does not handle the columns being moved.
> This won't manifest it self normally since the columns are the same size and
> the column position is calculated based on widths.
>
> I have attached a modified Snippet (the file that ends 'WithBug' )that
> includes a 3rd column called 'Age'. The width of 'Age' is smaller than the
> other columns.
>
> To trigger the bug, move 'Age' into the middle column and then right click
> in the left half of the 'Surname' column and add the email column. You'll
> see that the addition of column is relative to 'Age' and not to 'Surname'.
>
> I have attached a snippet with a fix (the file that ends 'WithFix' ) in it
> that correctly handles column reording.
> However, if I move a column into the first column position and add 'Insert
> E-mail before' then I encounter a new bug - the column gets created as the
> 3rd column rather than then the first. I have traced through this with the
> debugger and the new column is indeed being added in column 0, but then a
> call to v.getTable().getColumnOrder() shows it being ordered 3rd.
>
> Why is there this disconnect between where the column is being added and
> where it is appearing?
> This is happening on Windows XP. I can't make sense of the OS.SendMessage
> calls that underly this stuff. Perhaps someone would try this on Linux or
> Mac OS X and let me know if the same issue occurs.
>
> -Patrick
>
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [JFace] bug in snippet 019 [message #333673 is a reply to message #333591] Mon, 22 December 2008 12:22 Go to previous message
Eclipse UserFriend
This is now bug 259285
https://bugs.eclipse.org/bugs/show_bug.cgi?id=259285 for anyone interested.
Previous Topic:Editing Manifest programmatically
Next Topic:Convert class files in java code
Goto Forum:
  


Current Time: Wed May 07 20:11:40 EDT 2025

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

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

Back to the top