Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Mixing a TableViewer and a TableCursor
Mixing a TableViewer and a TableCursor [message #462715] Mon, 17 October 2005 19:54 Go to next message
Albert Huh is currently offline Albert Huh
Messages: 20
Registered: July 2009
Junior Member
I have a TableViewer but I would like to be able to navigate each cell using
a TableCusor. Whenever I combine these, I lose the functionality of the
CellEditors that I defined for the TableViewer. Does anybody have any
experience combing these two classes or can point me to a better grid
control?
Re: Mixing a TableViewer and a TableCursor [message #462743 is a reply to message #462715] Tue, 18 October 2005 13:15 Go to previous message
Emil van Galen is currently offline Emil van Galen
Messages: 12
Registered: July 2009
Junior Member
To open a cell editor from a table cursor, you need implements a SWT SelectionListener on the table cursor.
In the widgetDefaultSelected(SelectionEvent) method you can open the cell editor with TableViewer.editElement(Object, int).

Have a look at the following SWT snippet that uses a
TableEditor instead op TableViewer.editElement to show an
editor:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet96.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup
Previous Topic:Browser error status information
Next Topic:Warning on SWT_AWT and OSX and a suggestion
Goto Forum:
  


Current Time: Sat Apr 19 18:37:04 EDT 2014

Powered by FUDForum. Page generated in 0.01595 seconds