list.addComponentListener(EditorHintsListener.getInstance());
// Attempt to speak selection.
Object selectedValue = list.getSelectedValue();
if (TextToSpeechOptions.isScreenReading() && selectedValue != null && selectedValue instanceof Fix) {
Fix f = (Fix) selectedValue;
speech.speak(f.getText(), SpeechPriority.MEDIUM_HIGH);
}
} else {
if (TextToSpeechOptions.isScreenReading()) {
speech.speak("Editor hints closing", SpeechPriority.MEDIUM_HIGH);
}