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