Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2002-04-11 02:30:41 +0000
committerDarin Wright2002-04-11 02:30:41 +0000
commit7f309841796defbee38f626ffaee83230049cefe (patch)
tree7d1adfeda072ec2a86f801ffe2fd9197bfda539a
parent98923e2cd8d96fb753613b063402369d38f035b4 (diff)
downloadeclipse.platform.debug-7f309841796defbee38f626ffaee83230049cefe.tar.gz
eclipse.platform.debug-7f309841796defbee38f626ffaee83230049cefe.tar.xz
eclipse.platform.debug-7f309841796defbee38f626ffaee83230049cefe.zip
bug 13214
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchHistoryPreferenceTab.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchHistoryPreferenceTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchHistoryPreferenceTab.java
index f11eb1c27..5d3e43741 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchHistoryPreferenceTab.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchHistoryPreferenceTab.java
@@ -244,17 +244,15 @@ public abstract class LaunchHistoryPreferenceTab {
Object element = (Object) elements.next();
if(!first && favs.indexOf(element) == 0) {
first= true;
- } else if (!last && favs.indexOf(element) == lastFav) {
- last= true;
}
- if (first && last) {
- break;
+ if (!last && favs.indexOf(element) == lastFav) {
+ last= true;
}
}
fRemoveFavoritesButton.setEnabled(notEmpty);
- fMoveUpButton.setEnabled(notEmpty && !first);
- fMoveDownButton.setEnabled(notEmpty && !last);
+ fMoveUpButton.setEnabled(notEmpty && !first && (first != last));
+ fMoveDownButton.setEnabled(notEmpty && !last && (first != last));
}
/**
@@ -381,8 +379,7 @@ public abstract class LaunchHistoryPreferenceTab {
getFavorites().add(config);
getRecents().remove(config);
}
- getFavoritesTable().refresh();
- getRecentTable().refresh();
+ updateStatus();
}
/**

Back to the top