Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-03-14 16:45:29 +0000
committerjames2002-03-14 16:45:29 +0000
commitdcccda52032ee4badaebb0e4efc74392b111a4bd (patch)
tree0db7e7c5c9494f7956c33db5eedf2ddc2912ad40
parent25635d704fe110138d138b0651d1d459684f8047 (diff)
downloadeclipse.platform.team-dcccda52032ee4badaebb0e4efc74392b111a4bd.tar.gz
eclipse.platform.team-dcccda52032ee4badaebb0e4efc74392b111a4bd.tar.xz
eclipse.platform.team-dcccda52032ee4badaebb0e4efc74392b111a4bd.zip
Refactor the helper
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/BranchWizardMethodPage.java22
1 files changed, 20 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/BranchWizardMethodPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/BranchWizardMethodPage.java
index bb057746d..c74045ba0 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/BranchWizardMethodPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/BranchWizardMethodPage.java
@@ -53,7 +53,7 @@ public class BranchWizardMethodPage extends CVSWizardPage {
data.horizontalSpan = 2;
eclipseWay.setLayoutData(data);
- Composite eclipseDescriptionComposite = BranchWizard.createDescriptionComposite(composite, 2);
+ Composite eclipseDescriptionComposite = createDescriptionComposite(composite, 2);
Label eclipseDescription = new Label(eclipseDescriptionComposite, SWT.WRAP);
eclipseDescription.setText(Policy.bind("BranchWizardMethodPage.eclipseDescription")); //$NON-NLS-1$
data = new GridData();
@@ -72,7 +72,7 @@ public class BranchWizardMethodPage extends CVSWizardPage {
data.horizontalSpan = 2;
cvsWay.setLayoutData(data);
- Composite cvsDescriptionComposite = BranchWizard.createDescriptionComposite(composite, 2);
+ Composite cvsDescriptionComposite = createDescriptionComposite(composite, 2);
Label cvsDescription = new Label(cvsDescriptionComposite, SWT.WRAP);
cvsDescription.setText(Policy.bind("BranchWizardMethodPage.cvsDescription")); //$NON-NLS-1$
data = new GridData();
@@ -90,4 +90,22 @@ public class BranchWizardMethodPage extends CVSWizardPage {
private void updateEnablement() {
setPageComplete(true);
}
+
+ private Composite createDescriptionComposite(Composite parent, int parentColumns) {
+ Composite composite = new Composite(parent, SWT.NULL);
+
+ // GridLayout
+ GridLayout layout = new GridLayout();
+ layout.marginWidth = 10;
+ layout.marginHeight = 0;
+ composite.setLayout(layout);
+
+ // GridData
+ GridData data = new GridData();
+ data.verticalAlignment = GridData.FILL;
+ data.horizontalAlignment = GridData.FILL;
+ data.horizontalSpan = parentColumns;
+ composite.setLayoutData(data);
+ return composite;
+ }
} \ No newline at end of file

Back to the top