1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Bug #196185 : Up button not greyed in Paths & Symbols dlg for discovered paths

This commit is contained in:
Oleg Krasilnikov 2007-07-17 11:49:48 +00:00
parent e89e37b00c
commit ddfec5c6d7

View file

@ -186,8 +186,8 @@ public abstract class AbstractLangsListTab extends AbstractCPropertyTab {
} else {
buttonSetText(3, UIMessages.getString("AbstractLangsListTab.2")); //$NON-NLS-1$
}
boolean canMoveUp = canDelete && index > 0;
boolean canMoveDown = canDelete && (index < table.getItemCount() - 1);
boolean canMoveUp = canEdit && index > 0;
boolean canMoveDown = canEdit && (index < table.getItemCount() - 1);
if (canMoveDown && showBIButton.getSelection()) {
ICLanguageSettingEntry ent = (ICLanguageSettingEntry)(table.getItem(index+1).getData());
if (ent.isBuiltIn()) canMoveDown = false; // cannot exchange with built in