Bug 147375 - [Preferences] Preference Dialog title overwritten by message when message is empty
Summary: [Preferences] Preference Dialog title overwritten by message when message is ...
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Duong Nguyen CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-06-15 18:17 EDT by aontheweb CLA
Modified: 2007-06-13 16:18 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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