title: How do I add a double-click event listener to tray icon using SWT?
body: <p>I have an SWT tray icon which I've created with the following snippet of code:</p>
  
  <pre><code>    itmTrayItem = new TrayItem(trySysTray, SWT.NONE);
      itmTrayItem.setToolTipText("My App");
      itmTrayItem.addListener(SWT.MenuDetect, new Listener() {
          public void handleEvent(Event event) {
              mnuPopup.setVisible(true);
          }
      });
  </code></pre>
  
  <p>Right clicking on the tray icon brings up a context menu. I'd like to add a double-click event to the tray icon so that when the icon is double-clicked I perform some action. How can I do this?</p>
  
  <p>I haven't understood how I was use the mouse listener as I've been finding some parts of the SWT docs lacking in examples.</p>
  
  <p>Thanks</p>