[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Is it possible to have a tree with only some items with checkboxes

Darragh McGeown wrote:
Is it possible to have a tree with only some items with checkboxes? For example, let's say i want checkboxes for directories nut i want images without checkboxes in a file explorer example?

That is easy to realize with image snapshot's of the actual checkbox's. See e.g.

http://tom-eclipse-dev.blogspot.com/2007/01/tableviewers-and-nativelooking.html

or

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet061FakedNativeCellEditor.java?view=markup

The essence of the idea is that now your label provider can implement
at which locations the checkboxes (or other "widgets") occur.

HTH & Greetings from Bremen,

Daniel KrÃgler