예제 #1
0
 /**
  * Sets the receiver's tool tip text to the argument, which may be null indicating that the
  * default tool tip for the control will be shown. For a control that has a default tool tip, such
  * as the Tree control on Windows, setting the tool tip text to an empty string replaces the
  * default, causing no tool tip text to be shown.
  *
  * <p>The mnemonic indicator (character '&amp;') is not displayed in a tool tip. To display a
  * single '&amp;' in the tool tip, the character '&amp;' can be escaped by doubling it in the
  * string.
  *
  * @param string the new tool tip text (or null)
  * @exception SWTException
  *     <ul>
  *       <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  *       <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  *     </ul>
  *
  * @since 3.2
  */
 public void setToolTipText(String string) {
   checkWidget();
   toolTipText = string;
   parent.checkToolTip(this);
 }