directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r964861 - in /directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers: apacheds/ jobs/
Date Fri, 16 Jul 2010 17:05:12 GMT
Author: pamarcelot
Date: Fri Jul 16 17:05:12 2010
New Revision: 964861

URL: http://svn.apache.org/viewvc?rev=964861&view=rev
Log:
Fixed typo in localized messages and ID.
Added basic implementation (status switch) for Apache DS Adapters.

Modified:
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/ApacheDS156LdapServerAdapter.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/ApacheDS157LdapServerAdapter.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StopLdapServerJob.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/messages_fr.properties

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/ApacheDS156LdapServerAdapter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/ApacheDS156LdapServerAdapter.java?rev=964861&r1=964860&r2=964861&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/ApacheDS156LdapServerAdapter.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/ApacheDS156LdapServerAdapter.java
Fri Jul 16 17:05:12 2010
@@ -23,6 +23,7 @@ package org.apache.directory.studio.ldap
 
 import org.apache.directory.studio.ldapservers.model.LdapServer;
 import org.apache.directory.studio.ldapservers.model.LdapServerAdapter;
+import org.apache.directory.studio.ldapservers.model.LdapServerStatus;
 import org.eclipse.core.runtime.IProgressMonitor;
 
 
@@ -49,11 +50,19 @@ public class ApacheDS156LdapServerAdapte
     public void start( LdapServer server, IProgressMonitor monitor ) throws Exception
     {
         System.out.println( "start " + server.getName() );
+
+        Thread.sleep( 3000 );
+
+        server.setStatus( LdapServerStatus.STARTED );
     }
 
 
     public void stop( LdapServer server, IProgressMonitor monitor ) throws Exception
     {
         System.out.println( "stop " + server.getName() );
+
+        Thread.sleep( 3000 );
+
+        server.setStatus( LdapServerStatus.STOPPED );
     }
 }

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/ApacheDS157LdapServerAdapter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/ApacheDS157LdapServerAdapter.java?rev=964861&r1=964860&r2=964861&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/ApacheDS157LdapServerAdapter.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/ApacheDS157LdapServerAdapter.java
Fri Jul 16 17:05:12 2010
@@ -23,6 +23,7 @@ package org.apache.directory.studio.ldap
 
 import org.apache.directory.studio.ldapservers.model.LdapServer;
 import org.apache.directory.studio.ldapservers.model.LdapServerAdapter;
+import org.apache.directory.studio.ldapservers.model.LdapServerStatus;
 import org.eclipse.core.runtime.IProgressMonitor;
 
 
@@ -49,11 +50,19 @@ public class ApacheDS157LdapServerAdapte
     public void start( LdapServer server, IProgressMonitor monitor ) throws Exception
     {
         System.out.println( "start " + server.getName() );
+        
+        Thread.sleep( 3000 );
+
+        server.setStatus( LdapServerStatus.STARTED );
     }
 
 
     public void stop( LdapServer server, IProgressMonitor monitor ) throws Exception
     {
         System.out.println( "stop " + server.getName() );
+        
+        Thread.sleep( 3000 );
+
+        server.setStatus( LdapServerStatus.STOPPED );
     }
 }

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StopLdapServerJob.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StopLdapServerJob.java?rev=964861&r1=964860&r2=964861&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StopLdapServerJob.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/StopLdapServerJob.java
Fri Jul 16 17:05:12 2010
@@ -62,7 +62,7 @@ public class StopLdapServerJob extends J
     protected IStatus run( IProgressMonitor monitor )
     {
         // Setting the name of the Job
-        setName( NLS.bind( Messages.getString( "StopLdapServerJob.Stoping" ), new String[]
{ server.getName() } ) ); //$NON-NLS-1$
+        setName( NLS.bind( Messages.getString( "StopLdapServerJob.Stopping" ), new String[]
{ server.getName() } ) ); //$NON-NLS-1$
 
         // Setting the status on the server to 'stopping'
         server.setStatus( LdapServerStatus.STOPPING );

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/messages_fr.properties?rev=964861&r1=964860&r2=964861&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/messages_fr.properties
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/jobs/messages_fr.properties
Fri Jul 16 17:05:12 2010
@@ -16,4 +16,4 @@
 #  under the License.
 
 StartLdapServerJob.Starting=D\u00E9marrage du serveur "{0}" ...
-StopLdapServerJob.Stopping=ArrĂȘt du server "{0}" ...
+StopLdapServerJob.Stopping=ArrĂȘt du serveur "{0}" ...



Mime
View raw message