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:
parent
e89e37b00c
commit
ddfec5c6d7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue