Project: Eclipse_Platform_UI
Bug 40638 [Dialogs] TitleAreaDialog is not initialized in the usual way.
Reported: 2003-07-22 21:46:09 | Status: resolved wontfix

When the TitleAreaDialog is constructed, it isn't ready to handle all of its mutators. In this snippet, the create() line is required, because otherwise setMessage() will throw a NullPointer when it attempts to modify the messageLabel; but it shouldn't be (according to Eclipse conventions). TitleAreaDialog titleAreaDialog = new TitleAreaDialog(getShell()); titleAreaDialog.create(); titleAreaDialog.setTitle("Title: org.eclipse.jface.dialogs.TitleAreaDialog"); titleAreaDialog.setMessage("Message: org.eclipse.jface.dialogs.TitleAreaDialog"); titleAreaDialog.open();

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java