}
control.setEnabled(enabled);
}
void updateListDependencies() {
SpellingEngineDescriptor desc= EditorsUI.getSpellingService().getActiveSpellingEngineDescriptor(fStore);
String id= desc != null ? desc.getId() : ""; //$NON-NLS-1$
if (desc == null) {
// safety in case there is no such descriptor
String message= TextEditorMessages.SpellingConfigurationBlock_error_not_exist;
EditorsPlugin.log(new Status(IStatus.WARNING, EditorsUI.PLUGIN_ID, IStatus.OK, message, null));
fCurrentBlock= new ErrorPreferences(message);
} else {
fCurrentBlock= (ISpellingPreferenceBlock) fProviderPreferences.get(id);
if (fCurrentBlock == null) {
try {
fCurrentBlock= desc.createPreferences();
fProviderPreferences.put(id, fCurrentBlock);
} catch (CoreException e) {
EditorsPlugin.log(e);
fCurrentBlock= new ErrorPreferences(e.getLocalizedMessage());
}