title: Tooltip visibility in SWT
body: <p>I have a Class which displays a label. When I hover the mouse over that label there is a empty tooltip being displayed. I would want to remove that tooltip(I mean I dont want it to be shown). I can easily say tooltip.setVisibility(false) but I should not change the code inside the MouseTrackListener Anonymous class. I need to use a toltip property pr anythin else so that when I extend this class I need to have an option to easily set the visibility of this tooltip if needed or disable it if not needed. </p>
  
  <p>Here is my Code snippet (JAVA SWT)</p>
  
  <pre><code>tooltip = new ToolTip(parent.getShell(), SWT.NONE);
  
  MouseTrackListener mouseTrackListener = new MouseTrackListener() {
  @Override
  public void mouseEnter(MouseEvent e) {
      if (text != null &amp;&amp; !text.isEmpty()) {                       
        tooltip.setLocation(Display.getCurrent().getCursorLocation().x, 
         Display.getCurrent().getCursorLocation().y + TOOLTIP_OFFSET_Y);
         tooltip.setVisible(true);
     }
  }
  
  @Override
  public void mouseExit(MouseEvent e) {
       if (text != null &amp;&amp; !text.isEmpty()) {
            tooltip.setVisible(false);
       }
  }
  
  @Override
  public void mouseHover(MouseEvent e) {
  }};
  
  label.addMouseTrackListener(mouseTrackListener);
  iconLabel.addMouseTrackListener(mouseTrackListener);
  </code></pre>