directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r513353 - in /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors: AttributeTypeFormEditorOverviewPage.java ObjectClassFormEditorOverviewPage.java
Date Thu, 01 Mar 2007 14:46:16 GMT
Author: pamarcelot
Date: Thu Mar  1 06:46:15 2007
New Revision: 513353

URL: http://svn.apache.org/viewvc?view=rev&rev=513353
Log:
Changed the height of the Description widget to be a 3 lines text field.

Modified:
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditorOverviewPage.java
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditorOverviewPage.java

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditorOverviewPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditorOverviewPage.java?view=diff&rev=513353&r1=513352&r2=513353
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditorOverviewPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditorOverviewPage.java
Thu Mar  1 06:46:15 2007
@@ -143,7 +143,6 @@
 
     /** The listener for the OID Text Widget */
     //    private Object oidTextListener;
-    
     /** The listener for the Schema Hyperlink Widget*/
     private HyperlinkAdapter schemaLinkListener = new HyperlinkAdapter()
     {
@@ -163,7 +162,7 @@
             }
         }
     };
-    
+
     /** The listener for the Description Text Widget */
     private ModifyListener descriptionTextListener = new ModifyListener()
     {
@@ -464,11 +463,13 @@
         toolkit.createLabel( client_general_information, Messages
             .getString( "AttributeTypeFormEditorOverviewPage.Description" ) ); //$NON-NLS-1$
         descriptionText = toolkit.createText( client_general_information, "", SWT.MULTI |
SWT.V_SCROLL ); //$NON-NLS-1$
-        descriptionText.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true, 2, 1
) );
-        
+        GridData descriptionGridData = new GridData( SWT.FILL, SWT.NONE, true, false, 2,
1 );
+        descriptionGridData.heightHint = 42;
+        descriptionText.setLayoutData( descriptionGridData );
+
         // SCHEMA Field
-        schemaLink = toolkit.createHyperlink( client_general_information, "Schema:", SWT.WRAP
 );
-        schemaLabel =  toolkit.createLabel( client_general_information, "" ); //$NON-NLS-1$
+        schemaLink = toolkit.createHyperlink( client_general_information, "Schema:", SWT.WRAP
);
+        schemaLabel = toolkit.createLabel( client_general_information, "" ); //$NON-NLS-1$
         schemaLabel.setLayoutData( new GridData( SWT.FILL, 0, true, false, 2, 1 ) );
 
         // SUP Combo
@@ -683,7 +684,7 @@
         {
             this.oidText.setText( modifiedAttributeType.getOid() );
         }
-        
+
         // SCHEMA Field
         if ( modifiedAttributeType.getOriginatingSchema() != null )
         {
@@ -768,7 +769,7 @@
         }
     }
 
-    
+
     /**
      * Fills the the Sup Combo with the correct value
      *
@@ -895,7 +896,7 @@
                 substringCombo.select( i );
                 return;
             }
-        } 
+        }
     }
 
 

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditorOverviewPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditorOverviewPage.java?view=diff&rev=513353&r1=513352&r2=513353
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditorOverviewPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditorOverviewPage.java
Thu Mar  1 06:46:15 2007
@@ -29,7 +29,6 @@
 
 import org.apache.directory.ldapstudio.schemas.Activator;
 import org.apache.directory.ldapstudio.schemas.PluginConstants;
-import org.apache.directory.ldapstudio.schemas.controller.SchemasViewController;
 import org.apache.directory.ldapstudio.schemas.model.ObjectClass;
 import org.apache.directory.ldapstudio.schemas.model.Schema;
 import org.apache.directory.ldapstudio.schemas.model.SchemaPool;
@@ -277,7 +276,7 @@
             }
             catch ( PartInitException exception )
             {
-                Logger.getLogger( SchemasViewController.class ).debug( "error when opening
the editor" ); //$NON-NLS-1$
+                Logger.getLogger( ObjectClassFormEditorOverviewPage.class ).debug( "error
when opening the editor" ); //$NON-NLS-1$
             }
         }
 
@@ -382,7 +381,7 @@
             }
             catch ( PartInitException exception )
             {
-                Logger.getLogger( SchemasViewController.class ).debug( "error when opening
the editor" ); //$NON-NLS-1$
+                Logger.getLogger( ObjectClassFormEditorOverviewPage.class ).debug( "error
when opening the editor" ); //$NON-NLS-1$
             }
         }
 
@@ -571,7 +570,7 @@
             .getString( "ObjectClassFormEditorOverviewPage.Description" ) ); //$NON-NLS-1$
         descriptionText = toolkit.createText( client_general_information, "", SWT.MULTI |
SWT.V_SCROLL ); //$NON-NLS-1$
         GridData descriptionGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
-        descriptionGridData.heightHint = 37;
+        descriptionGridData.heightHint = 42;
         descriptionText.setLayoutData( descriptionGridData );
 
         // SUP Combo



Mime
View raw message