Example #1
0
 /**
  * Gets the selected text, or an empty string if there is no current selection.
  *
  * @return the selected text
  * @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>
  */
 public String getSelectionText() {
   checkWidget();
   return TextUtils.getSelectionText(variant, topHandle);
 }