Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » LabelProvider with image disables expansion of checkbox tree nodes
LabelProvider with image disables expansion of checkbox tree nodes [message #681758] Thu, 09 June 2011 20:00 Go to next message
Bo Ens is currently offline Bo EnsFriend
Messages: 10
Registered: January 2010
Junior Member
We are using a CheckboxTreeViewer that was working fine until we added images to the LabelProvider.

If LabelProvider.getImage returns null for all nodes, there are no problems. When images are returned, the images display fine, but the arrows for expanding the nodes are now disabled. See attached snapshots for examples.

The TreeContentProvider.getChildren method was returning true, but the TreeContentProvider.getChildren method was not being called for anything but the root node.

Has anybody seen this, and if so, any workarounds?

Thanks.
Re: LabelProvider with image disables expansion of checkbox tree nodes [message #681769 is a reply to message #681758] Thu, 09 June 2011 20:24 Go to previous message
Bo Ens is currently offline Bo EnsFriend
Messages: 10
Registered: January 2010
Junior Member
The expansion arrows don't work, but just noticed that the nodes can be expanded using the keyboard.

After trying different size images, using 12x12 works. Anything smaller than that cause the expansion arrows to be smaller and not respond to mouse events.
Previous Topic:Disabled menu item icons missing with Windows Classic theme
Next Topic:Catching exceptions thrown by Runnable in Display.syncExec
Goto Forum:
  


Current Time: Thu Apr 25 13:43:30 GMT 2024

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

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

Back to the top