You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2010/07/13 18:19:27 UTC

svn commit: r963782 - in /directory/studio/trunk/ldapservers: ./ src/main/java/org/apache/directory/studio/ldapservers/ src/main/java/org/apache/directory/studio/ldapservers/actions/ src/main/java/org/apache/directory/studio/ldapservers/properties/ src...

Author: pamarcelot
Date: Tue Jul 13 16:19:27 2010
New Revision: 963782

URL: http://svn.apache.org/viewvc?rev=963782&view=rev
Log:
Added the properties page.

Added:
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/Messages.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/PropertiesAction.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages.properties
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages_de.properties
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages_fr.properties
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/Messages.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/ServerPropertyPage.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages.properties
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages_de.properties
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages_fr.properties
Modified:
    directory/studio/trunk/ldapservers/plugin.xml
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersPluginConstants.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersView.java

Modified: directory/studio/trunk/ldapservers/plugin.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/plugin.xml?rev=963782&r1=963781&r2=963782&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/plugin.xml (original)
+++ directory/studio/trunk/ldapservers/plugin.xml Tue Jul 13 16:19:27 2010
@@ -53,4 +53,18 @@
          </view>
       </perspectiveExtension>
    </extension>
+   
+   <extension
+         point="org.eclipse.ui.propertyPages">
+      <page
+            class="org.apache.directory.studio.ldapservers.properties.ServerPropertyPage"
+            id="org.apache.directory.studio.ldapservers.properties.ServerPropertyPage"
+            name="Info">
+         <enabledWhen>
+            <instanceof
+                  value="org.apache.directory.studio.ldapservers.model.LdapServer">
+            </instanceof>
+         </enabledWhen>
+      </page>
+   </extension>
 </plugin>

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersPluginConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersPluginConstants.java?rev=963782&r1=963781&r2=963782&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersPluginConstants.java (original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersPluginConstants.java Tue Jul 13 16:19:27 2010
@@ -33,7 +33,6 @@ public interface LdapServersPluginConsta
 
     /** The LDAP Adapters Extension Point ID */
     public static final String LDAP_SERVER_ADAPTERS_EXTENSION_POINT = PLUGIN_ID + ".ldapServerAdapters"; //$NON-NLS-1$
-    
 
     // ------
     // IMAGES
@@ -51,4 +50,9 @@ public interface LdapServersPluginConsta
     public static final String IMG_SERVER_STOPPING2 = "resources/icons/server_stopping2.gif";
     public static final String IMG_SERVER_STOPPING3 = "resources/icons/server_stopping3.gif";
 
+    // --------------
+    // PROPERTY PAGES
+    // --------------
+    public static final String PROP_SERVER_PROPERTY_PAGE = "org.apache.directory.studio.ldapservers.properties.ServerPropertyPage";
+
 }

Added: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/Messages.java?rev=963782&view=auto
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/Messages.java (added)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/Messages.java Tue Jul 13 16:19:27 2010
@@ -0,0 +1,51 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio.ldapservers.actions;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapservers.actions.messages"; //$NON-NLS-1$
+
+    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
+
+
+    private Messages()
+    {
+    }
+
+
+    public static String getString( String key )
+    {
+        try
+        {
+            return RESOURCE_BUNDLE.getString( key );
+        }
+        catch ( MissingResourceException e )
+        {
+            return '!' + key + '!';
+        }
+    }
+}

Added: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/PropertiesAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/PropertiesAction.java?rev=963782&view=auto
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/PropertiesAction.java (added)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/PropertiesAction.java Tue Jul 13 16:19:27 2010
@@ -0,0 +1,185 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.ldapservers.actions;
+
+
+import org.apache.directory.studio.ldapservers.LdapServersPluginConstants;
+import org.apache.directory.studio.ldapservers.model.LdapServer;
+import org.apache.directory.studio.ldapservers.views.ServersView;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.preference.PreferenceDialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.IWorkbenchWindowActionDelegate;
+import org.eclipse.ui.dialogs.PreferencesUtil;
+
+
+/**
+ * This class implements the properties action for a server.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class PropertiesAction extends Action implements IWorkbenchWindowActionDelegate
+{
+    /** The associated view */
+    private ServersView view;
+
+
+    /**
+     * Creates a new instance of PropertiesAction.
+     */
+    public PropertiesAction()
+    {
+        super( Messages.getString( "PropertiesAction.Properties" ) ); //$NON-NLS-1$
+        init();
+    }
+
+
+    /**
+     * Creates a new instance of PropertiesAction.
+     * 
+     * @param view
+     *      the associated view
+     */
+    public PropertiesAction( ServersView view )
+    {
+        super( Messages.getString( "PropertiesAction.Properties" ) ); //$NON-NLS-1$
+        this.view = view;
+        init();
+    }
+
+
+    /**
+     * Initializes the action.
+     */
+    private void init()
+    {
+//        setId( ApacheDsPluginConstants.CMD_PROPERTIES ); // TODO
+//        setActionDefinitionId( ApacheDsPluginConstants.CMD_PROPERTIES ); // TODO
+//        setToolTipText( Messages.getString( "PropertiesAction.PropertiesToolTip" ) ); //$NON-NLS-1$ // TODO
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.action.Action#run()
+     */
+    public void run()
+    {
+        if ( view != null )
+        {
+            StructuredSelection selection = ( StructuredSelection ) view.getViewer().getSelection();
+            if ( !selection.isEmpty() )
+            {
+                LdapServer server = ( LdapServer ) selection.getFirstElement();
+                PreferenceDialog dialog = PreferencesUtil.createPropertyDialogOn( view.getViewSite().getShell(),
+                    server, LdapServersPluginConstants.PROP_SERVER_PROPERTY_PAGE, null, null );
+                dialog.getShell().setText( NLS.bind( Messages.getString( "PropertiesAction.PropertiesFor" ), //$NON-NLS-1$
+                    shorten( server.getName(), 30 ) ) );
+                dialog.open();
+            }
+        }
+    }
+
+
+    /**
+     * Shortens the given label to the given maximum length
+     * and filters non-printable characters.
+     * 
+     * @param label the label
+     * @param maxLength the max length
+     * 
+     * @return the shortened label
+     */
+    public static String shorten( String label, int maxLength )
+    {
+        if ( label == null )
+        {
+            return null;
+        }
+
+        // shorten label
+        if ( maxLength < 3 )
+        {
+            return "..."; //$NON-NLS-1$
+        }
+        if ( label.length() > maxLength )
+        {
+            label = label.substring( 0, maxLength / 2 ) + "..." //$NON-NLS-1$
+                + label.substring( label.length() - maxLength / 2, label.length() );
+
+        }
+
+        // filter non-printable characters
+        StringBuffer sb = new StringBuffer( maxLength + 3 );
+        for ( int i = 0; i < label.length(); i++ )
+        {
+            char c = label.charAt( i );
+            if ( Character.isISOControl( c ) )
+            {
+                sb.append( '.' );
+            }
+            else
+            {
+                sb.append( c );
+            }
+        }
+
+        return sb.toString();
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+     */
+    public void run( IAction action )
+    {
+        run();
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
+     */
+    public void dispose()
+    {
+        // Nothing to do
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
+     */
+    public void init( IWorkbenchWindow window )
+    {
+        // Nothing to do
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
+     */
+    public void selectionChanged( IAction action, ISelection selection )
+    {
+        // Nothing to do
+    }
+}

Added: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages.properties?rev=963782&view=auto
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages.properties (added)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages.properties Tue Jul 13 16:19:27 2010
@@ -0,0 +1,61 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+CreateConnectionAction.CreateAConnection=Create a Connection
+CreateConnectionAction.FollowingErrorOccurred=The following error occurred\: 
+CreateConnectionAction.LDAPAndLDAPSDisabled=LDAP and LDAPS protocols are disabled. A connection cannot be created.
+CreateConnectionAction.StopToolTip=Stop
+CreateConnectionAction.UnableCreateConnection=Unable to create a connection
+CreateConnectionAction.UnableReadServerConfiguration=Unable to read the server configuration.
+CreateConnectionActionHelper.ConnectionCalledCreated=A connection called "{0}" has been created.
+CreateConnectionActionHelper.ConnectionCalledCreatedSwitch=A connection called "{0}" has been created.\n\nDo you want to switch to the LDAP perspective ?
+CreateConnectionActionHelper.ConnectionCreated=Connection created
+DeleteAction.Delete=&Delete
+DeleteAction.DeleteToolTip=Delete
+DeleteAction.ErrorWhileStopping=An error occurred when stopping the server.\n\n
+NewServerAction.NewServer=New &Server
+NewServerAction.NewServerToolTip=New Server
+OpenConfigurationAction.ErrorWhenOpening=An error occurred when opening the Apache DS Configuration Editor.\n\n
+OpenConfigurationAction.OpenConfiguration=&Open Configuration
+OpenConfigurationAction.OpenConfigurationToolTip=Open Configuration
+PropertiesAction.Properties=&Properties
+PropertiesAction.PropertiesFor=Properties for "{0}"
+PropertiesAction.PropertiesToolTip=Properties
+RenameAction.ErrorNameInUse=The name is already in use. Specify a different name.
+RenameAction.Rename=R&ename...
+RenameAction.RenameToolTip=Rename...
+RenameAction.Server=Server
+RunAction.ChangePasswordPort=ChangePassword (port {0})
+RunAction.Continue=Do you wish to continue?
+RunAction.DNSPort=DNS (port {0})
+RunAction.FollowingErrorOccurred=The following error occurred\: 
+RunAction.KerberosPort=Kerberos (port {0})
+RunAction.LDAPPort=LDAP (port {0})
+RunAction.LDAPSPort=LDAPS (port {0})
+RunAction.NTPPort=NTP (port {0})
+RunAction.PortInUse=Port already in use
+RunAction.PortOfProtocolInUse=The port of the protocol {0} is already in use.
+RunAction.PortsInUse=Ports already in use
+RunAction.PortsOfProtocolsInUse=The ports of the following protocols are already in use\:
+RunAction.Run=&Run
+RunAction.RunToolTip=Run
+RunAction.UnableReadServerConfiguration=Unable to read the server configuration.
+StopAction.ErrorWhenStopping=An error occurred when stopping the server.\n\n
+StopAction.ErrorWhenWriting=An error occurred when writing to the Info console message stream.\n\n
+StopAction.ServerStopped=Server stopped.\n
+StopAction.Stop=S&top
+StopAction.StopToolTip=Stop

Added: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages_de.properties?rev=963782&view=auto
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages_de.properties (added)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages_de.properties Tue Jul 13 16:19:27 2010
@@ -0,0 +1,53 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+CreateConnectionAction.CreateAConnection=Eine Verbindung erstellen
+CreateConnectionAction.FollowingErrorOccurred=Es ist folgender Fehler aufgetreten\: 
+CreateConnectionAction.LDAPAndLDAPSDisabled=Die Protokolle LDAP und LDAPS sind gesperrt. Es kann keine Verbindung erstellt werden.
+CreateConnectionAction.UnableCreateConnection=Unf\u00E4hig eine Verbindung zu erstellen
+CreateConnectionAction.UnableReadServerConfiguration=Unf\u00E4hig die Server Konfiguration zu lesen.
+CreateConnectionActionHelper.ConnectionCalledCreated=Eine Verbindung mit Namen "{0}" ist erstellt worden.
+CreateConnectionActionHelper.ConnectionCalledCreatedSwitch=Eine Verbindung mit Namen "{0}" ist erstellt worden.\n\nM\u00F6chten Sie zur LDAP Perspektive wechseln?
+CreateConnectionActionHelper.ConnectionCreated=Verbindung erstellt
+DeleteAction.Delete=&L\u00F6schen
+DeleteAction.DeleteToolTip=L\u00F6schen
+DeleteAction.ErrorWhileStopping=Beim Stoppen des Servers ist ein Fehler aufgetreten.\n\n
+NewServerAction.NewServer=Neuer &Server
+NewServerAction.NewServerToolTip=Neuer Server
+OpenConfigurationAction.ErrorWhenOpening=Beim \u00D6ffnen des Apache DS Konfigurations-Editors ist ein Fehler aufgetreten.\n\n
+OpenConfigurationAction.OpenConfiguration=Konfiguration &\u00F6ffnen
+OpenConfigurationAction.OpenConfigurationToolTip=Konfiguration \u00F6ffnen
+PropertiesAction.Properties=&Eigenschaften
+PropertiesAction.PropertiesFor=Eigenschaften f\u00FCr "{0}"
+PropertiesAction.PropertiesToolTip=Eigenschaften
+RenameAction.ErrorNameInUse=Der Name wird bereits verwendet. Geben Sie einen anderen Namen an.
+RenameAction.Rename=Umb&enennen...
+RenameAction.RenameToolTip=Umbenennen...
+RunAction.Continue=Wollen Sie weiterfahren?
+RunAction.FollowingErrorOccurred=Folgender Fehler ist aufgetreten\: 
+RunAction.PortInUse=Der Port wird bereits verwendet
+RunAction.PortOfProtocolInUse=Der Port des Protokolls {0} wird bereits verwendet.
+RunAction.PortsInUse=Die Ports werden bereits verwendet
+RunAction.PortsOfProtocolsInUse=Die Ports folgender Protokolle werden bereits verwendet\:
+RunAction.UnableReadServerConfiguration=Unf\u00E4hig die Server Konfiguration zu lesen.
+RunAction.Run=&Starten
+RunAction.RunToolTip=Starten
+StopAction.Stop=S&toppen
+StopAction.StopToolTip=Stoppen
+StopAction.ErrorWhenStopping=Beim Stoppen des Servers ist ein Fehler aufgetreten.\n\n
+StopAction.ErrorWhenWriting=Beim Schreiben auf die Informations-Nachrichten-Konsole ist ein Fehler aufgetreten.\n\n
+StopAction.ServerStopped=Server gestoppt.\n

Added: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages_fr.properties?rev=963782&view=auto
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages_fr.properties (added)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/messages_fr.properties Tue Jul 13 16:19:27 2010
@@ -0,0 +1,63 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+# Raccourcis clavier :
+# ^A : Arr\u00EAter
+# ^D : D\u00E9marrer
+# ^N : Nouveau
+# ^O : Ouvrir
+# ^P : Propri\u00E9t\u00E9s
+# ^R : Renommer
+# ^S : Supprimer
+CreateConnectionAction.CreateAConnection=Cr\u00E9er une connexion
+CreateConnectionAction.FollowingErrorOccurred= L'erreur suivante est survenue \:
+CreateConnectionAction.LDAPAndLDAPSDisabled=Les protocoles LDAP et LDAPS sont d\u00E9sactiv\u00E9s. Il n'est pas possible de cr\u00E9er une connexion. 
+CreateConnectionAction.UnableCreateConnection=Impossible de cr\u00E9er une connexion.
+CreateConnectionAction.UnableReadServerConfiguration=Impossible de lire la configuration du serveur.
+CreateConnectionActionHelper.ConnectionCalledCreated=Une connexion nomm\u00E9e "{0}" a \u00E9t\u00E9 cr\u00E9\u00E9e.
+CreateConnectionActionHelper.ConnectionCalledCreatedSwitch=Une connexion nomm\u00E9e "{0}" a \u00E9t\u00E9 cr\u00E9\u00E9e.\n\nSouhaitez-vous basculer vers la perspective LDAP ?
+CreateConnectionActionHelper.ConnectionCreated=Connexion cr\u00E9\u00E9e
+DeleteAction.Delete=&Supprimer
+DeleteAction.DeleteToolTip=Supprimer
+DeleteAction.ErrorWhileStopping=Une erreur est survenue lors de l'arr\u00EAt du serveur.\n\n
+NewServerAction.NewServer=&Nouveau serveur
+NewServerAction.NewServerToolTip=Nouveau serveur
+OpenConfigurationAction.ErrorWhenOpening=Une erreur est survenue lors de l'ouverture de la configuration du server.\n\n
+OpenConfigurationAction.OpenConfiguration=&Ouvrir la configuration
+OpenConfigurationAction.OpenConfigurationToolTip=Ouvrir la configuration
+PropertiesAction.Properties=&Propri\u00E9t\u00E9s
+PropertiesAction.PropertiesFor=Propri\u00E9t\u00E9s du serveur "{0}"
+PropertiesAction.PropertiesToolTip=Propri\u00E9t\u00E9s
+RenameAction.ErrorNameInUse=Ce nom est d\u00E9j\u00E0 utilis\u00E9. Veuillez en s\u00E9lectionner un autre.
+RenameAction.Rename=&Renommer...
+RenameAction.RenameToolTip=Renommer...
+RenameAction.Server=Serveur
+RunAction.Continue=Voulez-vous poursuivre l'op\u00E9ration ?
+RunAction.FollowingErrorOccurred=L'erreur suivante est survenue \:
+RunAction.PortInUse=Le port est d\u00E9j\u00E0 utilis\u00E9
+RunAction.PortOfProtocolInUse=Le port associ\u00E9 au protocole "{0}" est d\u00E9j\u00E0 utilis\u00E9.
+RunAction.PortsInUse=Les ports sont d\u00E9j\u00E0 utilis\u00E9s.
+RunAction.PortsOfProtocolsInUse=Les ports associ\u00E9s aux protocoles suivants sont d\u00E9j\u00E0 utilis\u00E9s \:
+RunAction.Run=&D\u00E9marrer
+RunAction.RunToolTip=D\u00E9marrer
+RunAction.UnableReadServerConfiguration=Impossible de lire la configuration du serveur.
+StopAction.ErrorWhenStopping=Une erreur est survenue lors de l'arr\u00EAt du serveur.\n\n
+StopAction.ErrorWhenWriting=Une erreur est survenue lors de l'\u00E9criture dans la console d'information.\n\n
+StopAction.ServerStopped=Le serveur est arr\u00EAt\u00E9.\n
+StopAction.Stop=&Arr\u00EAter
+StopAction.StopToolTip=Arr\u00EAter
+

Added: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/Messages.java?rev=963782&view=auto
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/Messages.java (added)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/Messages.java Tue Jul 13 16:19:27 2010
@@ -0,0 +1,50 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.ldapservers.properties;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapservers.properties.messages"; //$NON-NLS-1$
+
+    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
+
+
+    private Messages()
+    {
+    }
+
+
+    public static String getString( String key )
+    {
+        try
+        {
+            return RESOURCE_BUNDLE.getString( key );
+        }
+        catch ( MissingResourceException e )
+        {
+            return '!' + key + '!';
+        }
+    }
+}

Added: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/ServerPropertyPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/ServerPropertyPage.java?rev=963782&view=auto
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/ServerPropertyPage.java (added)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/ServerPropertyPage.java Tue Jul 13 16:19:27 2010
@@ -0,0 +1,114 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.ldapservers.properties;
+
+
+import org.apache.directory.studio.ldapservers.LdapServersManager;
+import org.apache.directory.studio.ldapservers.model.LdapServer;
+import org.apache.directory.studio.ldapservers.model.LdapServerAdapterExtension;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.IWorkbenchPropertyPage;
+import org.eclipse.ui.dialogs.PropertyPage;
+
+
+/**
+ * This class implements the Info property page for an LDAP server.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class ServerPropertyPage extends PropertyPage implements IWorkbenchPropertyPage
+{
+    /**
+     * Creates a new instance of ServerPropertyPage.
+     */
+    public ServerPropertyPage()
+    {
+        super();
+        
+        super.noDefaultAndApplyButton();
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
+     */
+    protected Control createContents( Composite parent )
+    {
+        // Composite
+        Composite composite = new Composite( parent, SWT.NONE );
+        composite.setLayout( new GridLayout( 2, false ) );
+        composite.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) );
+
+        // Name
+        Label nameLabel = new Label( composite, SWT.NONE );
+        nameLabel.setText( Messages.getString( "ServerPropertyPage.Name" ) ); //$NON-NLS-1$
+        Text nameText = new Text( composite, SWT.NONE );
+        nameText.setEditable( false );
+        nameText.setBackground( parent.getBackground() );
+        nameText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Type
+        Label typeLabel = new Label( composite, SWT.NONE );
+        typeLabel.setText( "Type:" );
+        Text typeText = new Text( composite, SWT.NONE );
+        typeText.setEditable( false );
+        typeText.setBackground( parent.getBackground() );
+        typeText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Vendor
+        Label vendorLabel = new Label( composite, SWT.NONE );
+        vendorLabel.setText( "Vendor:" );
+        Text vendorText = new Text( composite, SWT.NONE );
+        vendorText.setEditable( false );
+        vendorText.setBackground( parent.getBackground() );
+        vendorText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
+
+        // Location
+        Label locationLabel = new Label( composite, SWT.NONE );
+        locationLabel.setText( Messages.getString( "ServerPropertyPage.Location" ) ); //$NON-NLS-1$
+        locationLabel.setLayoutData( new GridData( SWT.NONE, SWT.TOP, false, false ) );
+        Text locationText = new Text( composite, SWT.WRAP );
+        locationText.setEditable( false );
+        locationText.setBackground( parent.getBackground() );
+        GridData gd = new GridData( SWT.FILL, SWT.NONE, true, false );
+        gd.widthHint = 300;
+        locationText.setLayoutData( gd );
+
+        // Getting the server
+        LdapServer server = ( LdapServer ) getElement();
+        if ( server != null )
+        {
+            LdapServerAdapterExtension ldapServerAdapterExtension = server.getLdapServerAdapterExtension();
+
+            nameText.setText( server.getName() );
+            typeText.setText( ldapServerAdapterExtension.getName() + " " + ldapServerAdapterExtension.getVersion() );
+            vendorText.setText( ldapServerAdapterExtension.getVendor() );
+            locationText.setText( LdapServersManager.getServersFolder().append( server.getId() ).toOSString() );
+        }
+
+        return parent;
+    }
+}

Added: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages.properties?rev=963782&view=auto
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages.properties (added)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages.properties Tue Jul 13 16:19:27 2010
@@ -0,0 +1,20 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+ServerPropertyPage.Location=Location:
+ServerPropertyPage.Name=Name:
+ServerPropertyPage.Version=Version:

Added: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages_de.properties?rev=963782&view=auto
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages_de.properties (added)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages_de.properties Tue Jul 13 16:19:27 2010
@@ -0,0 +1,18 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+ServerPropertyPage.Location=Ort\:

Added: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages_fr.properties?rev=963782&view=auto
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages_fr.properties (added)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/messages_fr.properties Tue Jul 13 16:19:27 2010
@@ -0,0 +1,20 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+ServerPropertyPage.Location=Fichier:
+ServerPropertyPage.Name=Nom:
+ServerPropertyPage.Version=Version:

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersView.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersView.java?rev=963782&r1=963781&r2=963782&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersView.java (original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersView.java Tue Jul 13 16:19:27 2010
@@ -23,15 +23,13 @@ package org.apache.directory.studio.ldap
 import org.apache.directory.studio.ldapservers.LdapServersManager;
 import org.apache.directory.studio.ldapservers.LdapServersManagerListener;
 import org.apache.directory.studio.ldapservers.actions.NewServerAction;
+import org.apache.directory.studio.ldapservers.actions.PropertiesAction;
 import org.apache.directory.studio.ldapservers.model.LdapServer;
 import org.eclipse.jface.action.IMenuListener;
 import org.eclipse.jface.action.IMenuManager;
 import org.eclipse.jface.action.IToolBarManager;
 import org.eclipse.jface.action.MenuManager;
 import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.commands.ActionHandler;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.IDoubleClickListener;
 import org.eclipse.jface.viewers.ISelectionChangedListener;
 import org.eclipse.jface.viewers.SelectionChangedEvent;
 import org.eclipse.jface.viewers.StructuredSelection;
@@ -55,8 +53,6 @@ import org.eclipse.ui.contexts.IContextA
 import org.eclipse.ui.contexts.IContextService;
 import org.eclipse.ui.part.ViewPart;
 
-import com.sun.corba.se.spi.activation.Server;
-
 
 /**
  * This class implements the Servers view.
@@ -93,7 +89,7 @@ public class ServersView extends ViewPar
 //    private RunAction run;
 //    private StopAction stop;
 //    private CreateConnectionAction createConnection;
-//    private PropertiesAction properties;
+    private PropertiesAction properties;
 
     // Listeners
     private LdapServersManagerListener ldapServersManagerListener = new LdapServersManagerListener()
@@ -260,8 +256,8 @@ public class ServersView extends ViewPar
 //        createConnection = new CreateConnectionAction( this );
 //        createConnection.setEnabled( false );
 //
-//        properties = new PropertiesAction( this );
-//        properties.setEnabled( false );
+        properties = new PropertiesAction( this );
+        properties.setEnabled( false );
     }
 
 
@@ -303,8 +299,8 @@ public class ServersView extends ViewPar
 //                MenuManager ldapBrowserManager = new MenuManager( Messages.getString( "ServersView.ldapBrowser" ) ); //$NON-NLS-1$
 //                ldapBrowserManager.add( createConnection );
 //                manager.add( ldapBrowserManager );
-//                manager.add( new Separator() );
-//                manager.add( properties );
+                manager.add( new Separator() );
+                manager.add( properties );
             }
         } );
 
@@ -478,7 +474,7 @@ public class ServersView extends ViewPar
 //            delete.setEnabled( true );
 //            rename.setEnabled( true );
 //            createConnection.setEnabled( true );
-//            properties.setEnabled( true );
+            properties.setEnabled( true );
         }
         else
         {
@@ -488,7 +484,7 @@ public class ServersView extends ViewPar
 //            run.setEnabled( false );
 //            stop.setEnabled( false );
 //            createConnection.setEnabled( false );
-//            properties.setEnabled( false );
+            properties.setEnabled( false );
         }
     }