Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is it possible to have a tree with only some items with checkboxes(TreeItem check boxes)
Is it possible to have a tree with only some items with checkboxes [message #485180] Thu, 10 September 2009 14:06 Go to next message
Darragh McGeown is currently offline Darragh McGeown
Messages: 4
Registered: July 2009
Junior Member
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?

Thanks in advance
Re: Is it possible to have a tree with only some items with checkboxes [message #485274 is a reply to message #485180] Fri, 11 September 2009 03:12 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel Krügler
Messages: 853
Registered: July 2009
Senior Member
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.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/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
Re: Is it possible to have a tree with only some items with checkboxes [message #485367 is a reply to message #485274] Fri, 11 September 2009 09:54 Go to previous message
Darragh McGeown is currently offline Darragh McGeown
Messages: 4
Registered: July 2009
Junior Member
Hi Daniel,

Thats great, thanks.

Darragh
Previous Topic:SWT programs don't work for me after Snow Leopard upgrade
Next Topic:restrict Composite size
Goto Forum:
  


Current Time: Fri Jul 25 12:09:39 EDT 2014

Powered by FUDForum. Page generated in 0.01515 seconds