Eclipse TreeViewer / ViewPart splash screen

I am developing a flash drive application using eclipse. I have a TreeViewer in a ViewPart and I am using it to display various categories. However, I cannot find a way to handle the background click event. I don't have much experience with eclipse development, so it might be the wrong word.

I need something like this:

TreeViewer.setOnBackGroundClickListener(new ClickListener() {});

      

Screenshot

enter image description here

+3


source to share


1 answer


You have to use SWT layer:

TreeViewer.getTree().addMouseListener(new MouseListener() {...});



With this method, I get click notification even outside the selection.

0


source







All Articles