Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2007-04-16 14:52:40 +0000
committerMichael Valenta2007-04-16 14:52:40 +0000
commit664f1de3bc18e64655080dc6da9cbad560960adb (patch)
treef0e8d8046884f4b7a399bd1934b85fd93dc5b310 /bundles/org.eclipse.team.cvs.ui
parentc32940cf7f419c93ab91dd2b905ab6f595bbee37 (diff)
downloadeclipse.platform.team-664f1de3bc18e64655080dc6da9cbad560960adb.tar.gz
eclipse.platform.team-664f1de3bc18e64655080dc6da9cbad560960adb.tar.xz
eclipse.platform.team-664f1de3bc18e64655080dc6da9cbad560960adb.zip
Bug 178233 Unnecessary checkbox for Commit Wizard
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/SharingWizardSyncPage.java29
1 files changed, 16 insertions, 13 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/SharingWizardSyncPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/SharingWizardSyncPage.java
index 113de8f66..180f418ad 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/SharingWizardSyncPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/SharingWizardSyncPage.java
@@ -75,25 +75,14 @@ public class SharingWizardSyncPage extends CVSWizardPage implements IDiffChangeL
composite.setLayout(SWTUtils.createGridLayout(1, converter, SWTUtils.MARGINS_DEFAULT));
setControl(composite);
-
pageBook = new PageBook(composite, SWT.NONE);
pageBook.setLayoutData(SWTUtils.createHVFillGridData());
- input = createCompareInput();
- input.createPartControl(pageBook);
- syncPage = input.getControl();
- getDiffTree().addDiffChangeListener(this);
+ syncPage = createSyncPage(pageBook);
noChangesPage = createNoChangesPage(pageBook);
noChangesPage.setLayoutData(SWTUtils.createHVFillGridData());
- SWTUtils.createPlaceholder(composite, 1);
-
- fCheckbox= new Button(composite, SWT.CHECK);
- fCheckbox.setLayoutData(SWTUtils.createHFillGridData());
- fCheckbox.setText(CVSUIMessages.SharingWizardSyncPage_12);
- fCheckbox.setSelection(true);
-
updatePage();
PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IHelpContextIds.SHARING_SYNC_PAGE);
@@ -105,7 +94,21 @@ public class SharingWizardSyncPage extends CVSWizardPage implements IDiffChangeL
return null;
return getParticipant().getContext().getDiffTree();
}
-
+
+ private Control createSyncPage(PageBook pageBook) {
+ Composite composite = createComposite(pageBook, 1, false);
+ input = createCompareInput();
+ input.createPartControl(composite);
+ getDiffTree().addDiffChangeListener(this);
+
+ fCheckbox= new Button(composite, SWT.CHECK);
+ fCheckbox.setLayoutData(SWTUtils.createHFillGridData());
+ fCheckbox.setText(CVSUIMessages.SharingWizardSyncPage_12);
+ fCheckbox.setSelection(true);
+
+ return composite;
+ }
+
private Control createNoChangesPage(PageBook pageBook) {
Composite composite = createComposite(pageBook, 1, false);
createWrappingLabel(composite, NLS.bind(CVSUIMessages.SharingWizardSyncPage_3, new String[] { project.getName() }), 0);

Back to the top