Bug 131771 Match animated message behaviour in Preferences
An enhancement should be made to Preferences so that warnings and errors show up in a sliding message area like it they do in TitleAreaDialog.
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceMessageArea.java
setMessageLayoutData(messageArea.getLayoutData());
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.dialogs.DialogMessageArea#restoreTitle()
	 */
	public void restoreTitle() {
        titleLabel.setVisible(true);
      if(Policy.getAnimator().getAnimationState() == ControlAnimator.OPENING || 
         Policy.getAnimator().getAnimationState() == ControlAnimator.OPEN){
  		Policy.getAnimator().setAnimationState(ControlAnimator.CLOSING);
  		Policy.getAnimator().setVisible(false, messageArea);
      }
      lastMessageText = null;
      lastMessageType = IMessageProvider.NONE;
	}
	/**
	 * Shortens the given text <code>textValue</code> so that its width in
	 * pixels does not exceed the width of the given control plus an extra 
	 * offset in pixels. Overrides characters in the center of the original 
	 * string with an ellipsis ("...") if necessary. If a <code>null</code> 
	 * value is given, <code>null</code> is returned.
	 * 
	 * @param textValue
	 *            the original string or <code>null</code>
	 * @param control
	 *            the control the string will be displayed on
	 * @param offset
	 * 			  additional pixel offset by which to shorten the text
	 * @return the string to display, or <code>null</code> if null was passed
	 *         in