Bug 272997 [Dialogs] Add getMessage and getErrorMessage to TitleAreaDialogAPI
Build ID: I20090313-0100 Steps To Reproduce: I suggest the following methods for a TitleAreaDialog: setDialogComplete, getDialogComplete, setDescription, getDescription (and probably getMessage, getErrorMessage). This would allow (when data binding is used) the TitleAreaDialog together with TitleAreaDialogSupport to behave the same way as a WizardPage with WizardPageSupport. And this again provides a consistent GUI feel for the user.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java
break;
			case IMessageProvider.WARNING:
				newImage = JFaceResources.getImage(DLG_IMG_MESSAGE_WARNING);
				break;
			case IMessageProvider.ERROR:
				newImage = JFaceResources.getImage(DLG_IMG_MESSAGE_ERROR);
				break;
			}
		}
		showMessage(newMessage, newImage);
	}
	/**
	 * Show the new message and image.
	 * 
	 * @param newMessage
	 * @param newImage
	 */
	private void showMessage(String newMessage, Image newImage) {
		
		if (newMessage == null)
			newMessage = ""; 
		
		
		if (message.equals(newMessage) && messageImage == newImage) {
			return;
		}
		message = newMessage;