directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r689483 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java
Date Wed, 27 Aug 2008 14:03:04 GMT
Author: pamarcelot
Date: Wed Aug 27 07:03:04 2008
New Revision: 689483

URL: http://svn.apache.org/viewvc?rev=689483&view=rev
Log:
Part of a fix for DIRSTUDIO-380 (Attribute and Entry property pages makes the dialog very
tall)

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java?rev=689483&r1=689482&r2=689483&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java
Wed Aug 27 07:03:04 2008
@@ -90,8 +90,15 @@
             1, 1 ), 2, 1 );
         BaseWidgetUtils.createLabel( mainGroup, "DN:", 1 );
         dnText = BaseWidgetUtils.createWrappedLabeledText( mainGroup, "", 1 );
+        GridData dnTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
+        dnTextGridData.widthHint = 300;
+        dnText.setLayoutData( dnTextGridData );
+
         BaseWidgetUtils.createLabel( mainGroup, "URL:", 1 );
         urlText = BaseWidgetUtils.createWrappedLabeledText( mainGroup, "", 1 );
+        GridData urlTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
+        urlTextGridData.widthHint = 300;
+        urlText.setLayoutData( urlTextGridData );
 
         Group cmiGroup = BaseWidgetUtils.createGroup( BaseWidgetUtils.createColumnContainer(
composite, 1, 1 ),
             "Create and Modify Information", 1 );
@@ -99,15 +106,27 @@
 
         BaseWidgetUtils.createLabel( cmiComposite, "Create Timestamp:", 1 );
         ctText = BaseWidgetUtils.createLabeledText( cmiComposite, "", 2 );
+        GridData ctTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 );
+        ctTextGridData.widthHint = 300;
+        ctText.setLayoutData( ctTextGridData );
 
         BaseWidgetUtils.createLabel( cmiComposite, "Creators Name:", 1 );
         cnText = BaseWidgetUtils.createLabeledText( cmiComposite, "", 2 );
+        GridData cnTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 );
+        cnTextGridData.widthHint = 300;
+        cnText.setLayoutData( cnTextGridData );
 
         BaseWidgetUtils.createLabel( cmiComposite, "Modify Timestamp:", 1 );
         mtText = BaseWidgetUtils.createLabeledText( cmiComposite, "", 2 );
+        GridData mtTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 );
+        mtTextGridData.widthHint = 300;
+        mtText.setLayoutData( mtTextGridData );
 
         BaseWidgetUtils.createLabel( cmiComposite, "Modifiers Name:", 1 );
         mnText = BaseWidgetUtils.createLabeledText( cmiComposite, "", 1 );
+        GridData mnTextGridData = new GridData( GridData.FILL_HORIZONTAL );
+        mnTextGridData.widthHint = 300;
+        mnText.setLayoutData( mnTextGridData );
 
         reloadCmiButton = BaseWidgetUtils.createButton( cmiComposite, "", 1 );
         GridData gd = new GridData();
@@ -133,15 +152,27 @@
 
         BaseWidgetUtils.createLabel( sizingComposite, "Entry Size:", 1 );
         sizeText = BaseWidgetUtils.createLabeledText( sizingComposite, "", 2 );
+        GridData sizeTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 );
+        sizeTextGridData.widthHint = 300;
+        sizeText.setLayoutData( sizeTextGridData );
 
         BaseWidgetUtils.createLabel( sizingComposite, "Number of Children:", 1 );
         childrenText = BaseWidgetUtils.createLabeledText( sizingComposite, "", 2 );
+        GridData childrenTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false, 2,
1 );
+        childrenTextGridData.widthHint = 300;
+        childrenText.setLayoutData( childrenTextGridData );
 
         BaseWidgetUtils.createLabel( sizingComposite, "Number of Attributes:", 1 );
         attributesText = BaseWidgetUtils.createLabeledText( sizingComposite, "", 2 );
+        GridData attributesTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false,
2, 1 );
+        attributesTextGridData.widthHint = 300;
+        attributesText.setLayoutData( attributesTextGridData );
 
         BaseWidgetUtils.createLabel( sizingComposite, "Number of Values:", 1 );
         valuesText = BaseWidgetUtils.createLabeledText( sizingComposite, "", 2 );
+        GridData valuesTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1
);
+        valuesTextGridData.widthHint = 300;
+        valuesText.setLayoutData( valuesTextGridData );
 
         includeOperationalAttributesButton = BaseWidgetUtils.createCheckbox( sizingComposite,
             "Include operational attributes", 2 );



Mime
View raw message