This commit is contained in:
anna
2009-12-23 13:31:36 +03:00
parent 9581a8d885
commit ff314bc0e9
@@ -83,7 +83,9 @@ public class ScopeChooserCombo extends ComboboxWithBrowseButton {
combo.setRenderer(new DefaultListCellRenderer() {
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
setText(((ScopeDescriptor)value).getDisplay());
if (value instanceof ScopeDescriptor) {
setText(((ScopeDescriptor)value).getDisplay());
}
return this;
}
});