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 23:54 Go to next message
Albert Huh is currently offline Albert HuhFriend
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 17:15 Go to previous message
Emil van Galen is currently offline Emil van GalenFriend
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 Nov 22 13:18:29 GMT 2014

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

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