Difference between revisions of "JFaceSnippets"
(/* [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet006TableMultiLineCells.java?view=markup Snippet006TableMult)
|Line 30:||Line 30:|
Revision as of 11:57, 11 June 2007
JFace-Snippets are small easy understandable programming example how to use JFace API. You can find them in CVS JFace code snippets:
Demonstrates tables with more than one column and the usage of ITableLabelProvider
Demonstrates how the selection can be hidden when the user click in a tablerow/column which doesn't hold any information. The standard behaviour of SWT-Table is to leave the selection on the last column. This snippet removes the selection if the user clicks in an area not selectable
Demonstrates how to create a different context menu depending on which item in the tree is currently selected this can also be used with a table of course
Demonstrates first use case for the new OwnerDraw-Support added to JFace in 3.3 (available at SWT-Level since 3.2). This uses the new Viewers API in this special case the OwnerDrawLabelProvider to make items with more than one line of text.