title: Select a TreeItem in a tree using WindowBuilder
body: <p>So am trying to make a project where the user can select from a tree a <code>TreeItem</code> called <code>Category</code> , and by that category, a table will sort so it matches it.</p>
  
  <p>The problem is that am using <code>WindowBuilder</code> in Eclipse and I don't see an event that says so, or a way to make it that the point where the cursor is aiming at, is the Item selected (when clicking of course) .</p>
  
  <p>The other thing is that, is there any way to use <code>Jforms</code> using <code>WindowBuilder</code>? I think there is a big difference between them.</p>
  
  <p>And for information, I already searched in the net and all I found is solutions about <code>TreeView</code> which first I am not using and second I tested it and still it doesn't work.</p>
  
  <p>This is the Code I used so I can detect the selected <code>TreeItem</code> when I click but it does not work either:</p>
  
  <pre><code>    Tree tree = new Tree(Frame, SWT.BORDER);
      tree.addSelectionListener(new SelectionAdapter() {
          @Override
          public void widgetSelected(SelectionEvent e) {
              TreeItem item = 
          tree.getItem(Display.getCurrent().getCursorLocation());
              if(item != null) {
                 ...
  </code></pre>