directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r682343 - /directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/TextFormatsPreferencePage.java
Date Mon, 04 Aug 2008 11:49:16 GMT
Author: pamarcelot
Date: Mon Aug  4 04:49:15 2008
New Revision: 682343

URL: http://svn.apache.org/viewvc?rev=682343&view=rev
Log:
Fix for DIRSTUDIO-121 (Some property pages make the dialog very tall).

Modified:
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/TextFormatsPreferencePage.java

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/TextFormatsPreferencePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/TextFormatsPreferencePage.java?rev=682343&r1=682342&r2=682343&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/TextFormatsPreferencePage.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/preferences/TextFormatsPreferencePage.java
Mon Aug  4 04:49:15 2008
@@ -39,6 +39,7 @@
 import org.eclipse.swt.events.ModifyListener;
 import org.eclipse.swt.events.VerifyEvent;
 import org.eclipse.swt.events.VerifyListener;
+import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
@@ -229,8 +230,11 @@
         tableBinaryEncodingWidget.addWidgetModifyListener( this );
 
         Composite copyTableHintComposite = BaseWidgetUtils.createColumnContainer( tableInnerComposite,
3, 3 );
-        BaseWidgetUtils.createWrappedLabeledText( copyTableHintComposite,
+        Text hintText = BaseWidgetUtils.createWrappedLabeledText( copyTableHintComposite,
             "Hint: The default settings are suitable to paste the copied data into Excel
or OpenOffice.", 1 );
+        GridData hintTextGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
+        hintTextGridData.widthHint = 300;
+        hintText.setLayoutData( hintTextGridData );
 
         tableTab.setControl( tableComposite );
     }
@@ -297,7 +301,7 @@
         xlsComposite.setLayout( new GridLayout( 1, false ) );
         Composite xlsInnerComposite = BaseWidgetUtils.createColumnContainer( xlsComposite,
3, 1 );
 
-        BaseWidgetUtils.createWrappedLabeledText( xlsInnerComposite, "Select Excel export
file format options:", 3 );
+        BaseWidgetUtils.createLabel( xlsInnerComposite, "Select Excel export file format
options:", 3 );
         BaseWidgetUtils.createSpacer( xlsInnerComposite, 3 );
 
         xlsValueDelimiterWidget = new OptionsInput( "Value Delimiter", "Pipe (|)", "|", new
String[]



Mime
View raw message