directory-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=689487&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/AttributePropertyPage.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/AttributePropertyPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/AttributePropertyPage.java?rev=689487&r1=689486&r2=689487&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/AttributePropertyPage.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/AttributePropertyPage.java
Wed Aug 27 07:11:47 2008
@@ -29,8 +29,10 @@
 import org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils;
 import org.apache.directory.studio.ldapbrowser.core.utils.Utils;
 import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.SelectionAdapter;
 import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
@@ -95,30 +97,54 @@
 
         BaseWidgetUtils.createLabel( mainGroup, "Description:", 1 );
         attributeNameText = BaseWidgetUtils.createLabeledText( mainGroup, "", 1 );
+        GridData attributeNameTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false
);
+        attributeNameTextGridData.widthHint = 300;
+        attributeNameText.setLayoutData( attributeNameTextGridData );
 
         BaseWidgetUtils.createLabel( mainGroup, "Type:", 1 );
         attributeTypeText = BaseWidgetUtils.createLabeledText( mainGroup, "", 1 );
+        GridData attributeTypeTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false
);
+        attributeTypeTextGridData.widthHint = 300;
+        attributeTypeText.setLayoutData( attributeTypeTextGridData );
 
         BaseWidgetUtils.createLabel( mainGroup, "Number of Values:", 1 );
         attributeValuesText = BaseWidgetUtils.createLabeledText( mainGroup, "", 1 );
+        GridData attributeValuesTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false
);
+        attributeValuesTextGridData.widthHint = 300;
+        attributeValuesText.setLayoutData( attributeValuesTextGridData );
 
         BaseWidgetUtils.createLabel( mainGroup, "Attribute Size:", 1 );
         attributeSizeText = BaseWidgetUtils.createLabeledText( mainGroup, "", 1 );
+        GridData attributeSizeTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false
);
+        attributeSizeTextGridData.widthHint = 300;
+        attributeSizeText.setLayoutData( attributeSizeTextGridData );
 
         Group atdGroup = BaseWidgetUtils.createGroup( composite, "Attribute Type", 1 );
         Composite atdComposite = BaseWidgetUtils.createColumnContainer( atdGroup, 2, 1 );
 
         BaseWidgetUtils.createLabel( atdComposite, "Numeric OID:", 1 );
         atdOidText = BaseWidgetUtils.createLabeledText( atdComposite, "", 1 );
+        GridData atdOidTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
+        atdOidTextGridData.widthHint = 300;
+        atdOidText.setLayoutData( atdOidTextGridData );
 
         BaseWidgetUtils.createLabel( atdComposite, "Alternative Names:", 1 );
         atdNamesText = BaseWidgetUtils.createLabeledText( atdComposite, "", 1 );
+        GridData atdNamesTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
+        atdNamesTextGridData.widthHint = 300;
+        atdNamesText.setLayoutData( atdNamesTextGridData );
 
         BaseWidgetUtils.createLabel( atdComposite, "Description:", 1 );
         atdDescText = BaseWidgetUtils.createWrappedLabeledText( atdComposite, "", 1 );
+        GridData atdDescTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
+        atdDescTextGridData.widthHint = 300;
+        atdDescText.setLayoutData( atdDescTextGridData );
 
         BaseWidgetUtils.createLabel( atdComposite, "Usage:", 1 );
         atdUsageText = BaseWidgetUtils.createLabeledText( atdComposite, "", 1 );
+        GridData atdUsageTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
+        atdUsageTextGridData.widthHint = 300;
+        atdUsageText.setLayoutData( atdUsageTextGridData );
 
         Group flagsGroup = BaseWidgetUtils.createGroup( composite, "Flags", 1 );
         Composite flagsComposite = BaseWidgetUtils.createColumnContainer( flagsGroup, 4,
1 );
@@ -164,24 +190,42 @@
 
         BaseWidgetUtils.createLabel( syntaxComposite, "Syntax OID:", 1 );
         syntaxOidText = BaseWidgetUtils.createLabeledText( syntaxComposite, "", 1 );
+        GridData syntaxOidTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
+        syntaxOidTextGridData.widthHint = 300;
+        syntaxOidText.setLayoutData( syntaxOidTextGridData );
 
         BaseWidgetUtils.createLabel( syntaxComposite, "Syntax Description:", 1 );
         syntaxDescText = BaseWidgetUtils.createLabeledText( syntaxComposite, "", 1 );
+        GridData syntaxDescTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
+        syntaxDescTextGridData.widthHint = 300;
+        syntaxDescText.setLayoutData( syntaxDescTextGridData );
 
         BaseWidgetUtils.createLabel( syntaxComposite, "Syntax Length:", 1 );
         syntaxLengthText = BaseWidgetUtils.createLabeledText( syntaxComposite, "", 1 );
+        GridData syntaxLengthTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false
);
+        syntaxLengthTextGridData.widthHint = 300;
+        syntaxLengthText.setLayoutData( syntaxLengthTextGridData );
 
         Group matchingGroup = BaseWidgetUtils.createGroup( composite, "Matching Rules", 1
);
         Composite matchingComposite = BaseWidgetUtils.createColumnContainer( matchingGroup,
2, 1 );
 
         BaseWidgetUtils.createLabel( matchingComposite, "Equality Match:", 1 );
         equalityMatchingRuleText = BaseWidgetUtils.createLabeledText( matchingComposite,
"", 1 );
+        GridData equalityMatchingRuleTextGridData = new GridData( SWT.FILL, SWT.NONE, true,
false );
+        equalityMatchingRuleTextGridData.widthHint = 300;
+        equalityMatchingRuleText.setLayoutData( equalityMatchingRuleTextGridData );
 
         BaseWidgetUtils.createLabel( matchingComposite, "Substring Match:", 1 );
         substringMatchingRuleText = BaseWidgetUtils.createLabeledText( matchingComposite,
"", 1 );
+        GridData substringMatchingRuleTextGridData = new GridData( SWT.FILL, SWT.NONE, true,
false );
+        substringMatchingRuleTextGridData.widthHint = 300;
+        substringMatchingRuleText.setLayoutData( substringMatchingRuleTextGridData );
 
         BaseWidgetUtils.createLabel( matchingComposite, "Ordering Match:", 1 );
         orderingMatchingRuleText = BaseWidgetUtils.createLabeledText( matchingComposite,
"", 1 );
+        GridData orderingMatchingRuleTextGridData = new GridData( SWT.FILL, SWT.NONE, true,
false );
+        orderingMatchingRuleTextGridData.widthHint = 300;
+        orderingMatchingRuleText.setLayoutData( orderingMatchingRuleTextGridData );
 
         IAttribute attribute = getAttribute( getElement() );
         if ( attribute != null )



Mime
View raw message