Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-05-19 14:53:46 -0400
committerjames2002-05-19 14:53:46 -0400
commitfd81aba734e2c998c54d50098d488f328c503678 (patch)
treedd324c28d5cab587b4c551d2c99194532fb5e790
parentd665acc5e83c5d8049a4b8cfbb016f606e37a84d (diff)
downloadeclipse.platform.team-fd81aba734e2c998c54d50098d488f328c503678.tar.gz
eclipse.platform.team-fd81aba734e2c998c54d50098d488f328c503678.tar.xz
eclipse.platform.team-fd81aba734e2c998c54d50098d488f328c503678.zip
16373: Tab order is wrong on Add CVS Repository dialog
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ConfigurationWizardMainPage.java18
1 files changed, 14 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ConfigurationWizardMainPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ConfigurationWizardMainPage.java
index 6f3bae849..09d3d40fe 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ConfigurationWizardMainPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ConfigurationWizardMainPage.java
@@ -172,16 +172,26 @@ public class ConfigurationWizardMainPage extends CVSWizardPage {
connectionMethodCombo = createCombo(g);
// Port number
- useDefaultPort = createRadioButton(g, Policy.bind("ConfigurationWizardMainPage.useDefaultPort"), 2); //$NON-NLS-1$
- useCustomPort = createRadioButton(g, Policy.bind("ConfigurationWizardMainPage.usePort"), 1); //$NON-NLS-1$
+ // create a composite to ensure the radio buttons come in the correct order
+ Composite portGroup = new Composite(g, SWT.NONE);
+ GridData data = new GridData();
+ data.horizontalSpan = 2;
+ portGroup.setLayoutData(data);
+ GridLayout layout = new GridLayout();
+ layout.numColumns = 2;
+ layout.marginHeight = 0;
+ layout.marginWidth = 0;
+ portGroup.setLayout(layout);
+ useDefaultPort = createRadioButton(portGroup, Policy.bind("ConfigurationWizardMainPage.useDefaultPort"), 2); //$NON-NLS-1$
+ useCustomPort = createRadioButton(portGroup, Policy.bind("ConfigurationWizardMainPage.usePort"), 1); //$NON-NLS-1$
useCustomPort.addListener(SWT.Selection, listener);
- portText = createTextField(g);
+ portText = createTextField(portGroup);
portText.addListener(SWT.Selection, listener);
// create a composite to ensure the validate button is in its own tab group
if (showValidate) {
Composite validateButtonTabGroup = new Composite(composite, SWT.NONE);
- GridData data = new GridData();
+ data = new GridData();
data.horizontalSpan = 2;
validateButtonTabGroup.setLayoutData(data);
validateButtonTabGroup.setLayout(new FillLayout());

Back to the top