Bug 136244 [Dialogs] PopupDialog - API - overriding default colors should be simpler
PopupDialog has protected methods that allow you to dictate which controls in the dialog should have their foreground/background color set. However, it is not simple to override the colors themselves. The method applyColors is private, and in order to use applyForegroundColor(...), etc., you must override createContents to ensure that the subclasses' colors get set after the default colors. Instead, the method applyColors should either be made protected, or it should call protected methods that specify the foreground and background color, rather than assuming it is always the system info colors.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/PopupDialog.java
* @return <code>true</code> if the dialog's bounds will be persisted,
	 *         <code>false</code> if it will not.
	 * 
	 * @deprecated Please use {@link #getPersistLocation()} or
	 *             {@link #getPersistSize()} to determine separately whether
	 *             size or location will be persisted.
	 */
	protected boolean getPersistBounds() {
		
		
		
		
		
		return persistSize || persistLocation;
	}
	/**
	 * Return a boolean indicating whether this dialog will persist its
	 * location. This value is initially set in the dialog's constructor, but
	 * can be modified if the persist location action is shown on the menu and
	 * the user has changed its value. Subclasses may override this method.
	 * 
	 * @return <code>true</code> if the dialog's location will be persisted,
	 *         <code>false</code> if it will not.
	 * 
	 * @see #getPersistSize()
	 * @since 3.4
	 */
	protected boolean getPersistLocation() {
		return persistLocation;
	}