Example #1
0
 /**
  * Checks that this class can be subclassed.
  *
  * <p>IMPORTANT: See the comment in <code>Widget.checkSubclass()</code>.
  *
  * @exception SWTException
  *     <ul>
  *       <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass
  *     </ul>
  *
  * @see Widget#checkSubclass
  */
 protected void checkSubclass() {
   if (!Display.isValidClass(getClass())) {
     error(SWT.ERROR_INVALID_SUBCLASS);
   }
 }