show display name instead of id

This commit is contained in:
Gregory Shrago
2011-07-01 05:29:34 +04:00
parent 3b08deb60b
commit 1eedac28a8
@@ -130,7 +130,7 @@ public class InjectLanguageAction implements IntentionAction {
assert language != null;
final FileType ft = language.getAssociatedFileType();
setIcon(ft != null ? ft.getIcon() : EmptyIcon.ICON_16);
setText(value + (ft != null ? " (" + ft.getDescription() + ")" : ""));
setText(language.getDisplayName() + (ft != null ? " (" + ft.getDescription() + ")" : ""));
}
});
new PopupChooserBuilder(list).setItemChoosenCallback(new Runnable() {