void () { FontEditorDialog dlg = new FontEditorDialog(myProject, myPropertyName); dlg.setValue(myValue); dlg.show(); if (dlg.getExitCode() == DialogWrapper.OK_EXIT_CODE) { myValue = dlg.getValue(); myTextField.setText(IntroFontProperty.descriptorToString(myValue)); fireValueCommitted(true, false); } }