how to navigate in one column's celleditor of tableviewer using return key? [message #301596] |
Mon, 03 April 2006 03:36  |
Eclipse User |
|
|
|
Originally posted by: realghost819.gmail.com
my goal is if the focus is in one's column's celleditor,navigate to the same column of the next row in the tableviewer and activate the celleditor while pressed return key.
I can do that navigate among each column by using the function "editElement(Object element, int column)",but fail in the same column.this is my snippet:
((TextCellEditor) editors[0]).getControl().addTraverseListener(
new TraverseListener() {
public void keyTraversed(TraverseEvent e) {
if (e.detail == SWT.TRAVERSE_RETURN) {
selectedNextRecord();
tv.editElement(getPerson(), 0);
}
}
});
selectedNextRecord()is a function to navigate to next row.
can anyone help me?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03588 seconds