geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r325979 - /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/CommonGeneralSection.java
Date Mon, 17 Oct 2005 20:33:15 GMT
Author: sppatel
Date: Mon Oct 17 13:33:10 2005
New Revision: 325979

URL: http://svn.apache.org/viewcvs?rev=325979&view=rev
Log:
put hint on text field width for config and parent id

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

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/CommonGeneralSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/CommonGeneralSection.java?rev=325979&r1=325978&r2=325979&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/CommonGeneralSection.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/CommonGeneralSection.java
Mon Oct 17 13:33:10 2005
@@ -63,7 +63,7 @@
         createLabel(composite, Messages.editorConfigId, toolkit);
 
         configId = toolkit.createText(composite, getConfigID(), SWT.BORDER);
-        configId.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
+        configId.setLayoutData(createTextFieldGridData());
         configId.addModifyListener(new ModifyListener() {
             public void modifyText(ModifyEvent e) {
                 setConfigID(configId.getText());
@@ -76,7 +76,7 @@
 
         parentId = toolkit.createText(composite, getParentID(), SWT.BORDER);
         parentId
-                .setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
+                .setLayoutData(createTextFieldGridData());
         parentId.addModifyListener(new ModifyListener() {
             public void modifyText(ModifyEvent e) {
                 setParentID(parentId.getText());
@@ -91,6 +91,12 @@
         label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
         label.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
         return label;
+    }
+    
+    protected GridData createTextFieldGridData() {
+        GridData data = new GridData(SWT.FILL, SWT.CENTER, true, false);
+        data.widthHint = 150;
+        return data;
     }
 
     protected String getConfigID() {



Mime
View raw message