Пример #1
0
 /**
  * Shows the selection.
  *
  * <p>If the selection is already showing in the receiver, this method simply returns. Otherwise,
  * lines are scrolled until the selection is visible.
  *
  * @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 void showSelection() {
   checkWidget();
   if (variant == TextUtils.TEXT_EDIT) {
     OS.QTextEdit_ensureCursorVisible(topHandle);
   }
 }