A custom CellNavigationStrategy (to be used in SWTFocusCellManager) [message #329125] |
Fri, 13 June 2008 11:30 |
Eclipse User |
|
|
|
Originally posted by: beat.strasser.inventage.com
Hi there
I'm using a TreeViewerEditor and try to implement a different cell
navigation behaviour, so I'd like to overwrite the default
CellNavigationStrategy (to move the focus cell).
Unfortunately, it isn't possible to overwrite this strategy in the
TreeViewerFocusCellManager in Eclipse 3.3 (3.4 fixed this problem). Is
there another way to change the navigation behaviour (in 3.3)?
I've tried to subclass SWTFocusCellManager directly by faking its
jface.viewers package, but I didn't succeed (I got IllegalAccessErrors).
I'd like to change the navigation behaviour because the column order bug
(#195908) isn't fixed yet in 3.3 and we need to ignore some columns.
We'd like also to scroll the tree automatically when the focus cell
moves out of the visible area.
Second question: why is there another navigation implementation in the
ColumnViewerEditor#processTraverseEvent? Isn't this the same as the
CellNavigationStrategy?
TIA,
Beat
|
|
|
|
|
Re: A custom CellNavigationStrategy (to be used in SWTFocusCellManager) [message #329287 is a reply to message #329283] |
Wed, 18 June 2008 12:11 |
Eclipse User |
|
|
|
Originally posted by: beat.strasser.inventage.com
Hi Tom
>> Sorry for taking so long to come back to you and your question. I've
>> uploaded a snippet presenting a solution to your navigation problems.
Thanks for your work! Reflection is a powerful tool... :)
Now as I understand the idea of the traverse listener (tabbing between
editable cells), I like the idea very much.
I hope we can switch to 3.4 soon.
Beat
|
|
|
Powered by
FUDForum. Page generated in 0.03816 seconds