I am new to SWT. In Swing I could find the count of things in a list or tree. Now, I have a TreeViewer that can be empty. I need a way to make sure there is something to select before I call viewer.getSelection()
OK. never mind. I can get the number of items selected with viewer.getSelection(). If there are no items, the length of the array this returns will be zero.
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
Gift giving made easy with the permaculture playing cards