Bug 26133 [Dialogs] TitleAreaDialog status line blinks when newMessage == currentMessage
Build id: 200211051258 The current implementation for TitleAreaDialog#showMessage(String,int) method has a guard against updates to the message with the same content (to avoid needlessly blinking). The problem is that after that the message may be concatenated with a space character: ==================== //If there is an image then add in a space to the message //for layout purposes if(newImage != null) message = " " + message; //$NON-NLS-1$ ==================== So the guard will fail in the next call even if the same string is provided by the client.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java
titleImage.setBackground(background);
	titleImage.setImage(JFaceResources.getImage(DLG_IMG_TITLE_BANNER));
	
	FormData imageData = new FormData();
	imageData.top = new FormAttachment(0,verticalSpacing);
	imageData.right = new FormAttachment(100,horizontalSpacing);
	titleImage.setLayoutData(imageData);
	
	
	titleLabel = new Label(parent, SWT.LEFT);
	JFaceColors.setColors(titleLabel,foreground,background);
	titleLabel.setFont(JFaceResources.getBannerFont());
	titleLabel.setText(" ");
	FormData titleData = new FormData();
	titleData.top = new FormAttachment(0,verticalSpacing);
	titleData.right = new FormAttachment(titleImage);
	titleData.left = new FormAttachment(0,horizontalSpacing);
	titleLabel.setLayoutData(titleData);
	
	
	messageImageLabel = new Label(parent, SWT.CENTER);
	messageImageLabel.setBackground(background);
	
	messageLabel = new Label(parent, SWT.WRAP);
	JFaceColors.setColors(messageLabel,foreground,background);
	messageLabel.setText(" \n "); 
	messageLabel.setFont(JFaceResources.getDialogFont());
	
	
	leftFillerLabel = new Label(parent, SWT.CENTER);