Example #1
0
 /**
  * Sets the receiver's tool tip text to the argument, which may be null indicating that no tool
  * tip text should be shown.
  *
  * @param toolTipText the new tool tip text (or null)
  * @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 setToolTipText(String toolTipText) {
   checkWidget();
   if (toolTipText != null && isToolTipMarkupEnabledFor(this) && !isValidationDisabledFor(this)) {
     MarkupValidator.getInstance().validate(toolTipText);
   }
   this.toolTipText = toolTipText;
 }
Example #2
0
 private void validateMarkup(String[] items) {
   if (items != null && isMarkupEnabledFor(this) && !isValidationDisabledFor(this)) {
     for (int i = 0; i < items.length; i++) {
       if (items[i] != null) {
         MarkupValidator.getInstance().validate(items[i]);
       }
     }
   }
 }