directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r525836 - /directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/
Date Thu, 05 Apr 2007 14:38:19 GMT
Author: pamarcelot
Date: Thu Apr  5 07:38:18 2007
New Revision: 525836

URL: http://svn.apache.org/viewvc?view=rev&rev=525836
Log:
Improved Apache DS Configuration Editor. Added content in General Page. 

Modified:
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ExtendedOperationsPage.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/GeneralPage.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/InterceptorsPage.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionsMasterDetailsBlock.java
    directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionsPage.java

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ExtendedOperationsPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ExtendedOperationsPage.java?view=diff&rev=525836&r1=525835&r2=525836
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ExtendedOperationsPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/ExtendedOperationsPage.java
Thu Apr  5 07:38:18 2007
@@ -20,8 +20,10 @@
 package org.apache.directory.ldapstudio.apacheds.configuration.editor;
 
 
+import org.eclipse.ui.forms.IManagedForm;
 import org.eclipse.ui.forms.editor.FormEditor;
 import org.eclipse.ui.forms.editor.FormPage;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
 
 
 /**
@@ -48,5 +50,15 @@
     public ExtendedOperationsPage( FormEditor editor )
     {
         super( editor, ID, TITLE );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
+     */
+    protected void createFormContent( IManagedForm managedForm )
+    {
+        final ScrolledForm form = managedForm.getForm();
+        form.setText( "Extended Operations" );
     }
 }

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/GeneralPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/GeneralPage.java?view=diff&rev=525836&r1=525835&r2=525836
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/GeneralPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/GeneralPage.java
Thu Apr  5 07:38:18 2007
@@ -20,12 +20,27 @@
 package org.apache.directory.ldapstudio.apacheds.configuration.editor;
 
 
+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.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.forms.IManagedForm;
 import org.eclipse.ui.forms.editor.FormEditor;
 import org.eclipse.ui.forms.editor.FormPage;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
+import org.eclipse.ui.forms.widgets.Section;
+import org.eclipse.ui.forms.widgets.TableWrapData;
+import org.eclipse.ui.forms.widgets.TableWrapLayout;
 
 
 /**
- * This class represents the Basic Page of the Server Configuration Editor.
+ * This class represents the General Page of the Server Configuration Editor.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
@@ -38,6 +53,28 @@
     /** The Page Title */
     private static final String TITLE = "Basic";
 
+    // UI Fields
+    private Text portText;
+    private Combo authenticationCombo;
+    private Text principalText;
+    private Text passwordText;
+    private Button showPasswordCheckbox;
+    private Button allowAnonymousAccessCheckbox;
+
+    private Text maxTimeLimitText;
+
+    private Text maxSizeLimitText;
+
+    private Text synchPeriodText;
+
+    private Button enableAccesControlCheckbox;
+
+    private Button enableNTPCheckbox;
+
+    private Button enableKerberosCheckbox;
+
+    private Button enableChangePasswordCheckbox;
+
 
     /**
      * Creates a new instance of GeneralPage.
@@ -48,5 +85,186 @@
     public GeneralPage( FormEditor editor )
     {
         super( editor, ID, TITLE );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
+     */
+    protected void createFormContent( IManagedForm managedForm )
+    {
+        ScrolledForm form = managedForm.getForm();
+        form.setText( "General" );
+
+        Composite parent = form.getBody();
+        parent.setLayout( new TableWrapLayout() );
+        FormToolkit toolkit = managedForm.getToolkit();
+
+        createSettingsSection( parent, toolkit );
+        createLimitsSection( parent, toolkit );
+        createOptionsSection( parent, toolkit );
+    }
+
+
+    /**
+     * Creates the Settings Section.
+     *
+     * @param parent
+     *      the parent composite
+     * @param toolkit
+     *      the toolkit to use
+     */
+    private void createSettingsSection( Composite parent, FormToolkit toolkit )
+    {
+        // Creation of the section
+        Section section = toolkit.createSection( parent, Section.DESCRIPTION | Section.TITLE_BAR
);
+        section.marginWidth = 4;
+        section.setText( "Settings" );
+        section.setDescription( "Set the settings of the server." );
+        TableWrapData td = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
+        td.grabHorizontal = true;
+        section.setLayoutData( td );
+        Composite client = toolkit.createComposite( section );
+        toolkit.paintBordersFor( client );
+        GridLayout glayout = new GridLayout( 2, false );
+        client.setLayout( glayout );
+        section.setClient( client );
+
+        // Port
+        toolkit.createLabel( client, "Port:" );
+        portText = toolkit.createText( client, "" );
+        portText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Authentication
+        toolkit.createLabel( client, "Authentication:" );
+        authenticationCombo = new Combo( client, SWT.SIMPLE );
+        authenticationCombo.setItems( new String[]
+            { "Simple" } );
+        authenticationCombo.setText( "Simple" );
+        authenticationCombo.setEnabled( false );
+        authenticationCombo.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false
) );
+
+        // Principal
+        toolkit.createLabel( client, "Principal:" );
+        principalText = toolkit.createText( client, "" );
+        principalText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Password
+        toolkit.createLabel( client, "Password:" );
+        passwordText = toolkit.createText( client, "secret" );
+        passwordText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+        passwordText.setEchoChar( '●' );
+
+        // Show Password
+        toolkit.createLabel( client, "" );
+        showPasswordCheckbox = toolkit.createButton( client, "Show password", SWT.CHECK );
+        showPasswordCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false
) );
+        showPasswordCheckbox.setSelection( false );
+        showPasswordCheckbox.addSelectionListener( new SelectionAdapter()
+        {
+            public void widgetSelected( SelectionEvent e )
+            {
+                if ( showPasswordCheckbox.getSelection() )
+                {
+                    passwordText.setEchoChar( '\0' );
+                }
+                else
+                {
+                    passwordText.setEchoChar( '●' );
+                }
+            }
+        } );
+
+        // Allow Anonymous Access
+        allowAnonymousAccessCheckbox = toolkit.createButton( client, "Allow Anonymous Access",
SWT.CHECK );
+        allowAnonymousAccessCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false, 2, 1 ) );
+    }
+
+
+    /**
+     * Creates the Limits Section
+     *
+     * @param parent
+     *      the parent composite
+     * @param toolkit
+     *      the toolkit to use
+     */
+    private void createLimitsSection( Composite parent, FormToolkit toolkit )
+    {
+        // Creation of the section
+        Section section = toolkit.createSection( parent, Section.DESCRIPTION | Section.TITLE_BAR
);
+        section.marginWidth = 4;
+        section.setText( "Limits" );
+        section.setDescription( "Set the limits of the server." );
+        TableWrapData td = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
+        td.grabHorizontal = true;
+        section.setLayoutData( td );
+        Composite client = toolkit.createComposite( section );
+        toolkit.paintBordersFor( client );
+        GridLayout glayout = new GridLayout( 4, false );
+        client.setLayout( glayout );
+        section.setClient( client );
+
+        // Max. Time Limit
+        toolkit.createLabel( client, "Max. Time Limit:" );
+        maxTimeLimitText = toolkit.createText( client, "" );
+        maxTimeLimitText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Max. Size Limit
+        toolkit.createLabel( client, "Max. Size Limit:" );
+        maxSizeLimitText = toolkit.createText( client, "" );
+        maxSizeLimitText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Synchronization Period
+        toolkit.createLabel( client, "Synchronization Period:" );
+        synchPeriodText = toolkit.createText( client, "" );
+        synchPeriodText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Max. Threads
+        toolkit.createLabel( client, "Max. Threads:" );
+        synchPeriodText = toolkit.createText( client, "" );
+        synchPeriodText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+    }
+
+
+    /**
+     * Creates the Options Section
+     *
+     * @param parent
+     *      the parent composite
+     * @param toolkit
+     *      the toolkit to use
+     */
+    private void createOptionsSection( Composite parent, FormToolkit toolkit )
+    {
+        // Creation of the section
+        Section section = toolkit.createSection( parent, Section.DESCRIPTION | Section.TITLE_BAR
);
+        section.marginWidth = 4;
+        section.setText( "Options" );
+        section.setDescription( "Set the options of the server." );
+        TableWrapData td = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
+        td.grabHorizontal = true;
+        section.setLayoutData( td );
+        Composite client = toolkit.createComposite( section );
+        toolkit.paintBordersFor( client );
+        GridLayout glayout = new GridLayout( 2, true );
+        client.setLayout( glayout );
+        section.setClient( client );
+
+        // Enable Access Control
+        enableAccesControlCheckbox = toolkit.createButton( client, "Enable Access Control",
SWT.CHECK );
+        enableAccesControlCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false ) );
+
+        // Enable NTP
+        enableNTPCheckbox = toolkit.createButton( client, "Enable NTP", SWT.CHECK );
+        enableNTPCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false )
);
+
+        // Enable Kerberos
+        enableKerberosCheckbox = toolkit.createButton( client, "Enable Kerberos", SWT.CHECK
);
+        enableKerberosCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false
) );
+
+        // Enable Change Password
+        enableChangePasswordCheckbox = toolkit.createButton( client, "Enable Change Password",
SWT.CHECK );
+        enableChangePasswordCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false ) );
     }
 }

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/InterceptorsPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/InterceptorsPage.java?view=diff&rev=525836&r1=525835&r2=525836
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/InterceptorsPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/InterceptorsPage.java
Thu Apr  5 07:38:18 2007
@@ -20,8 +20,10 @@
 package org.apache.directory.ldapstudio.apacheds.configuration.editor;
 
 
+import org.eclipse.ui.forms.IManagedForm;
 import org.eclipse.ui.forms.editor.FormEditor;
 import org.eclipse.ui.forms.editor.FormPage;
+import org.eclipse.ui.forms.widgets.ScrolledForm;
 
 
 /**
@@ -48,5 +50,15 @@
     public InterceptorsPage( FormEditor editor )
     {
         super( editor, ID, TITLE );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
+     */
+    protected void createFormContent( IManagedForm managedForm )
+    {
+        final ScrolledForm form = managedForm.getForm();
+        form.setText( "Interceptors" );
     }
 }

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionsMasterDetailsBlock.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionsMasterDetailsBlock.java?view=diff&rev=525836&r1=525835&r2=525836
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionsMasterDetailsBlock.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionsMasterDetailsBlock.java
Thu Apr  5 07:38:18 2007
@@ -43,7 +43,7 @@
         //final ScrolledForm form = managedForm.getForm();
         FormToolkit toolkit = managedForm.getToolkit();
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( "All Partitions" ); //$NON-NLS-1$
+        section.setText( "All Partitions" );
 //        section.setDescription( "The list contains all the partitions whose details are
editable on the right" ); //$NON-NLS-1$
         section.marginWidth = 10;
         section.marginHeight = 5;

Modified: directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionsPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionsPage.java?view=diff&rev=525836&r1=525835&r2=525836
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionsPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-apacheds-configuration/src/main/java/org/apache/directory/ldapstudio/apacheds/configuration/editor/PartitionsPage.java
Thu Apr  5 07:38:18 2007
@@ -60,10 +60,8 @@
     @Override
     protected void createFormContent( IManagedForm managedForm )
     {
-        super.createFormContent( managedForm );
-
         final ScrolledForm form = managedForm.getForm();
-        form.setText( "Partitions" ); //$NON-NLS-1$
+        form.setText( "Partitions" );
         masterDetailBlock.createContent( managedForm );
     }
 }



Mime
View raw message