[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Skipping Columns, Highlite selected Cell, Scroll vertically

Hi SWT-Experts,

i am developing an excel-like editor. I am using a tree (TreeViewer) to visualize data. There are many columns in each row. What i'd like to accomplish is the following:

1. Tabbing with the Tab (which does not work on my MacOS machine)
2. having the selected row highlited
3. having the selected cell framed
4. skip to only 6 (out of 20) columns in each row, because only those six columns are editable.
5. scroll vertically when tabbing to a column which is not visible so far.


2 and 3 works partially. Thanks to Tom's FocusBorderHighliteSnippet (http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/FocusBorderCellHighlighter.java?revision=1.3&view=markup) i got 2 working. 3 works as well except for columns whom i set a different color trough LabelProvider (ObservableMapLabelProvider.getBackground()). In that case the border disappears when selecting such a column.

To accomplish 5 i used some code which i found in that snippet (http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet058CellNavigationIn34.java?revision=1.1&view=markup) thanks to Tom again. That works perfectly fine for activating an editor. But i did not manage to register a listener (which one) to react on "normal" cursor-events and make the apropriate column visible.

Could you give me some pointers?

Thanks in advance,

Thomas E.-E.