Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how to navigate in one column's celleditor of tableviewer using return key?
how to navigate in one column's celleditor of tableviewer using return key? [message #301596] Mon, 03 April 2006 03:36 Go to next message
Eclipse UserFriend
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?
Re: how to navigate in one column's celleditor of tableviewer using return key? [message #301731 is a reply to message #301596] Tue, 04 April 2006 22:09 Go to previous message
Eclipse UserFriend
Originally posted by: realghost819.gmail.com

Traverse event seemed to be handled specially.I can reach my goal by catching up/down key in keyListener.so confused!
Previous Topic:One developer two development sites: How to move the project back and forth?
Next Topic:Nature not showing icon -- plugin development
Goto Forum:
  


Current Time: Sat May 10 12:40:26 EDT 2025

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

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

Back to the top