[JFace] bug in snippet 019 [message #333585] |
Wed, 17 December 2008 19:01  |
Eclipse User |
|
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04052 seconds