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
* <p>
	 * This method is extended to save the dialog bounds and initialize widget
	 * state so that the widgets can be recreated if the dialog is reopened.
	 * This method may be extended (<code>super.close</code> must be called).
	 * </p>
	 * 
	 * @return <code>true</code> if the window is (or was already) closed, and
	 *         <code>false</code> if it is still open
	 */
	public boolean close() {
		
		
		if (getShell() == null || getShell().isDisposed()) {
			return true;
		}
		saveDialogBounds(getShell());
		
		
		
		
		initializeWidgetState();
		if (parentDeactivateListener != null) {
			getShell().getParent().removeListener(SWT.Deactivate,
					parentDeactivateListener);
			parentDeactivateListener = null;
		}
		return super.close();
	}
	/**
	 * Gets the dialog settings that should be used for remembering the bounds