Пример #1
0
 /**
  * Sets the strategy.
  *
  * @param strategy the strategy to set
  * @exception IllegalArgumentException
  *     <ul>
  *       <li>ERROR_NULL_ARGUMENT - if the strategy is null
  *     </ul>
  *
  * @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>
  */
 @SuppressWarnings("null")
 public void setStrategy(AbstractGroupStrategy strategy) {
   checkWidget();
   if (strategy == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
   this.strategy = strategy;
   setForeground(null);
   strategy.initialize(this);
 }