Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 147375

Summary: [Preferences] Preference Dialog title overwritten by message when message is empty
Product: [Eclipse Project] Platform Reporter: aontheweb
Component: UIAssignee: Duong Nguyen <duongn>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: susan, Tod_Creasey
Version: 3.1Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description aontheweb CLA 2006-06-15 18:17:36 EDT
The title for preference dialogs is replaced by message content when there are messages.  The operational definition of when there are messages is when message isn't null.  If you initialize your messages with empty strings rather than null, then you don't get your dialog title.  Sounds obvious when you are the author of the dialogs but it is a bit more tricky to realize as dialog extender when you don't initilize the message text at all for the intial dialog creation but only in response to a listener that you wouldn't think would be executed at dialog build time but is.

It would be better if a message of empty string would not overwrite the dialog title.
Comment 1 Paul Webster CLA 2006-06-15 21:26:09 EDT
Susan, do you think this is a general problem with the new message animation?

PW
Comment 2 Susan McCourt CLA 2006-06-15 21:46:59 EDT
This isn't related to the new message animation, which is implemented in TitleAreaDialog.  PreferenceDialog implements its own message area, which is used for both the title and messages.  Its setErrorMessage method (and related methods in PreferenceMessageArea) do not consider the empty string case.  (That said, I'm not sure that TitleAreaDialog behaves any differently...)
Comment 3 Tod Creasey CLA 2007-06-13 16:18:36 EDT
There are currently no plans to work on this however I would be happy to look over a contribution