directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1411637 - /directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationMasterDetailsBlock.java
Date Tue, 20 Nov 2012 12:17:13 GMT
Author: pamarcelot
Date: Tue Nov 20 12:17:12 2012
New Revision: 1411637

URL: http://svn.apache.org/viewvc?rev=1411637&view=rev
Log:
Improved layout with the editor taking 70% of the space (and the consumers list 30%).

Modified:
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationMasterDetailsBlock.java

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationMasterDetailsBlock.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationMasterDetailsBlock.java?rev=1411637&r1=1411636&r2=1411637&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationMasterDetailsBlock.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationMasterDetailsBlock.java
Tue Nov 20 12:17:12 2012
@@ -84,10 +84,24 @@ public class ReplicationMasterDetailsBlo
     /**
      * {@inheritDoc}
      */
+    public void createContent( IManagedForm managedForm )
+    {
+        super.createContent( managedForm );
+
+        this.sashForm.setWeights( new int[]
+            { 30, 70 } );
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
     protected void createMasterPart( final IManagedForm managedForm, Composite parent )
     {
         FormToolkit toolkit = managedForm.getToolkit();
 
+        sashForm.setOrientation( SWT.HORIZONTAL );
+
         // Creating the Section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
         section.setText( "All Replication Consummers" );



Mime
View raw message