Esempio n. 1
0
 /**
  * Throws an exception if the specified widget can not be used as a parent for the receiver.
  *
  * @exception IllegalArgumentException
  *     <ul>
  *       <li>ERROR_NULL_ARGUMENT - if the parent is null
  *       <li>ERROR_INVALID_ARGUMENT - if the parent is disposed
  *     </ul>
  *
  * @exception SWTException
  *     <ul>
  *       <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
  *     </ul>
  */
 void checkParent(Shell parent) {
   if (parent == null) error(SWT.ERROR_NULL_ARGUMENT);
   parent.checkWidget();
 }