geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r295116 - /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DependencyWizard.java
Date Wed, 05 Oct 2005 21:01:10 GMT
Author: sppatel
Date: Wed Oct  5 14:01:06 2005
New Revision: 295116

URL: http://svn.apache.org/viewcvs?rev=295116&view=rev
Log:
all reuse of Griddata needs to be changed to a new instance for each

Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DependencyWizard.java

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DependencyWizard.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DependencyWizard.java?rev=295116&r1=295115&r2=295116&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DependencyWizard.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/wizards/DependencyWizard.java
Wed Oct  5 14:01:06 2005
@@ -208,10 +208,7 @@
 
             uriLabel = new Label(group, SWT.LEFT);
             uriLabel.setText(Messages.uri);
-            GridData labelData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
-            labelData.horizontalIndent = 20;
-            labelData.widthHint = 50;
-            uriLabel.setLayoutData(labelData);
+            uriLabel.setLayoutData(createLabelGridData());
 
             uriText = new Text(group, SWT.SINGLE | SWT.BORDER);
             uriText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
@@ -223,14 +220,14 @@
 
             groupIdLabel = new Label(group, SWT.LEFT);
             groupIdLabel.setText(Messages.groupId);
-            groupIdLabel.setLayoutData(labelData);
+            groupIdLabel.setLayoutData(createLabelGridData());
 
             groupIdText = new Text(group, SWT.SINGLE | SWT.BORDER);
             groupIdText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
 
             artifactIdLabel = new Label(group, SWT.LEFT);
             artifactIdLabel.setText(Messages.artifactId);
-            artifactIdLabel.setLayoutData(labelData);
+            artifactIdLabel.setLayoutData(createLabelGridData());
 
             artifactIdText = new Text(group, SWT.SINGLE | SWT.BORDER);
             artifactIdText
@@ -238,7 +235,7 @@
 
             versionLabel = new Label(group, SWT.LEFT);
             versionLabel.setText(Messages.version);
-            versionLabel.setLayoutData(labelData);
+            versionLabel.setLayoutData(createLabelGridData());
 
             versionText = new Text(group, SWT.SINGLE | SWT.BORDER);
             versionText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
@@ -269,6 +266,12 @@
             setControl(composite);
 
         }
+    }
+    
+    public GridData createLabelGridData() {
+        GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
+        gd.horizontalIndent = 20;
+        return gd;
     }
 
     public void toggle() {



Mime
View raw message