FontDialog dlg = new FontDialog(getShell());
dlg.setText(localizationResources.getString(
"Font_Selection"));
dlg.setFontList(new FontData[] {
SWTTitleEditor.this.titleFont });
if (dlg.open() != null) {
// Dispose of any fonts we have created
if (SWTTitleEditor.this.font != null) {
SWTTitleEditor.this.font.dispose();
}
// Create the new font and set it into the title