Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-06-01 13:46:24 -0400
committerMichael Valenta2005-06-01 13:46:24 -0400
commitc7bd3b09b1ddeaec14a0fe318563ce0103bc9a30 (patch)
tree9d7f214044d80366531965e7fa40d8d88cc5e0c1
parent0754146e19e5b09a79e326eccd6ed6311c0b23dc (diff)
downloadeclipse.platform.team-c7bd3b09b1ddeaec14a0fe318563ce0103bc9a30.tar.gz
eclipse.platform.team-c7bd3b09b1ddeaec14a0fe318563ce0103bc9a30.tar.xz
eclipse.platform.team-c7bd3b09b1ddeaec14a0fe318563ce0103bc9a30.zip
Bug 97876 Pref Page Team/CVS/Prompting
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java
index 432ee6fd3..e35bc4b95 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java
@@ -186,8 +186,10 @@ public class CVSPreferencesPage extends PreferencePage implements IWorkbenchPref
public void initializeValue(IPreferenceStore store) {
final Object value= loadValue(store, fKey);
final int index= fValues.indexOf(value);
- if (index >= 0 && index < fLabels.length)
- fButtons[index].setSelection(true);
+ for (int i = 0; i < fButtons.length; i++) {
+ Button b = fButtons[i];
+ b.setSelection(index == i);
+ }
}
public void performOk(IPreferenceStore store) {

Back to the top