directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r965857 - 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/apacheds/ src/m...
Date Tue, 20 Jul 2010 14:16:44 GMT
Author: pamarcelot
Date: Tue Jul 20 14:16:43 2010
New Revision: 965857

URL: http://svn.apache.org/viewvc?rev=965857&view=rev
Log:
Javadoc & cleaning.

Removed:
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/MementoTest.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/apacheds/
Modified:
    directory/studio/trunk/ldapservers/plugin.xml
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/DeleteAction.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/NewServerAction.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/RenameAction.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/StartAction.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/StopAction.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/dialogs/DeleteServerDialog.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerAdapterExtension.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerEvent.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/views/ServerAdaptersView.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersTableViewer.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersView.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewContentProvider.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewLabelProvider.java
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewerComparator.java

Modified: directory/studio/trunk/ldapservers/plugin.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/plugin.xml?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/plugin.xml (original)
+++ directory/studio/trunk/ldapservers/plugin.xml Tue Jul 20 14:16:43 2010
@@ -2,16 +2,6 @@
 <?eclipse version="3.4"?>
 <plugin>
    <extension-point id="ldapServerAdapters" name="LDAP Server Adapters" schema="resources/ldapServerAdapters.exsd"/>
-   <extension
-         point="org.apache.directory.studio.ldapservers.ldapServerAdapters">
-      <ldapServerAdapter
-            class="org.apache.directory.studio.ldapservers.apacheds.ApacheDS157LdapServerAdapter"
-            id="org.apache.directory.server.1.5.7"
-            name="Apache DS"
-            vendor="Apache Software Foundation"
-            version="1.5.7">
-      </ldapServerAdapter>
-   </extension>
    
    <extension
          point="org.eclipse.ui.views">

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/DeleteAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/DeleteAction.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/DeleteAction.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/DeleteAction.java
Tue Jul 20 14:16:43 2010
@@ -85,8 +85,8 @@ public class DeleteAction extends Action
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.action.Action#run()
+    /**
+     * {@inheritDoc}
      */
     public void run()
     {
@@ -182,8 +182,8 @@ public class DeleteAction extends Action
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+    /**
+     * {@inheritDoc}
      */
     public void run( IAction action )
     {
@@ -191,8 +191,8 @@ public class DeleteAction extends Action
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
+    /**
+     * {@inheritDoc}
      */
     public void dispose()
     {
@@ -200,8 +200,8 @@ public class DeleteAction extends Action
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
+    /**
+     * {@inheritDoc}
      */
     public void init( IWorkbenchWindow window )
     {
@@ -209,8 +209,8 @@ public class DeleteAction extends Action
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
org.eclipse.jface.viewers.ISelection)
+    /**
+     * {@inheritDoc}
      */
     public void selectionChanged( IAction action, ISelection selection )
     {

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/NewServerAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/NewServerAction.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/NewServerAction.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/NewServerAction.java
Tue Jul 20 14:16:43 2010
@@ -54,8 +54,8 @@ public class NewServerAction extends Act
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.action.Action#run()
+    /**
+     * {@inheritDoc}
      */
     public void run()
     {
@@ -69,8 +69,8 @@ public class NewServerAction extends Act
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+    /**
+     * {@inheritDoc}
      */
     public void run( IAction action )
     {
@@ -78,8 +78,8 @@ public class NewServerAction extends Act
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
+    /**
+     * {@inheritDoc}
      */
     public void dispose()
     {
@@ -87,8 +87,8 @@ public class NewServerAction extends Act
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
+    /**
+     * {@inheritDoc}
      */
     public void init( IWorkbenchWindow window )
     {
@@ -96,8 +96,8 @@ public class NewServerAction extends Act
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
org.eclipse.jface.viewers.ISelection)
+    /**
+     * {@inheritDoc}
      */
     public void selectionChanged( IAction action, ISelection selection )
     {

Modified: 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=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/PropertiesAction.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/PropertiesAction.java
Tue Jul 20 14:16:43 2010
@@ -148,8 +148,8 @@ public class PropertiesAction extends Ac
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+    /**
+     * {@inheritDoc}
      */
     public void run( IAction action )
     {
@@ -157,8 +157,8 @@ public class PropertiesAction extends Ac
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
+    /**
+     * {@inheritDoc}
      */
     public void dispose()
     {
@@ -166,8 +166,8 @@ public class PropertiesAction extends Ac
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
+    /**
+     * {@inheritDoc}
      */
     public void init( IWorkbenchWindow window )
     {
@@ -175,8 +175,8 @@ public class PropertiesAction extends Ac
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
org.eclipse.jface.viewers.ISelection)
+    /**
+     * {@inheritDoc}
      */
     public void selectionChanged( IAction action, ISelection selection )
     {

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/RenameAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/RenameAction.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/RenameAction.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/RenameAction.java
Tue Jul 20 14:16:43 2010
@@ -112,8 +112,8 @@ public class RenameAction extends Action
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.action.Action#run()
+    /**
+     * {@inheritDoc}
      */
     public void run()
     {
@@ -355,8 +355,8 @@ public class RenameAction extends Action
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+    /**
+     * {@inheritDoc}
      */
     public void run( IAction action )
     {
@@ -364,8 +364,8 @@ public class RenameAction extends Action
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
+    /**
+     * {@inheritDoc}
      */
     public void dispose()
     {
@@ -373,8 +373,8 @@ public class RenameAction extends Action
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
+    /**
+     * {@inheritDoc}
      */
     public void init( IWorkbenchWindow window )
     {
@@ -382,8 +382,8 @@ public class RenameAction extends Action
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
org.eclipse.jface.viewers.ISelection)
+    /**
+     * {@inheritDoc}
      */
     public void selectionChanged( IAction action, ISelection selection )
     {

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/StartAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/StartAction.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/StartAction.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/StartAction.java
Tue Jul 20 14:16:43 2010
@@ -102,8 +102,8 @@ public class StartAction extends Action 
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+    /**
+     * {@inheritDoc}
      */
     public void run( IAction action )
     {
@@ -111,8 +111,8 @@ public class StartAction extends Action 
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
+    /**
+     * {@inheritDoc}
      */
     public void dispose()
     {
@@ -120,8 +120,8 @@ public class StartAction extends Action 
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
+    /**
+     * {@inheritDoc}
      */
     public void init( IWorkbenchWindow window )
     {
@@ -129,8 +129,8 @@ public class StartAction extends Action 
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
org.eclipse.jface.viewers.ISelection)
+    /**
+     * {@inheritDoc}
      */
     public void selectionChanged( IAction action, ISelection selection )
     {

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/StopAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/StopAction.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/StopAction.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/StopAction.java
Tue Jul 20 14:16:43 2010
@@ -106,8 +106,8 @@ public class StopAction extends Action i
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+    /**
+     * {@inheritDoc}
      */
     public void run( IAction action )
     {
@@ -115,8 +115,8 @@ public class StopAction extends Action i
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
+    /**
+     * {@inheritDoc}
      */
     public void dispose()
     {
@@ -124,8 +124,8 @@ public class StopAction extends Action i
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
+    /**
+     * {@inheritDoc}
      */
     public void init( IWorkbenchWindow window )
     {
@@ -133,8 +133,8 @@ public class StopAction extends Action i
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
org.eclipse.jface.viewers.ISelection)
+    /**
+     * {@inheritDoc}
      */
     public void selectionChanged( IAction action, ISelection selection )
     {

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/dialogs/DeleteServerDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/dialogs/DeleteServerDialog.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/dialogs/DeleteServerDialog.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/dialogs/DeleteServerDialog.java
Tue Jul 20 14:16:43 2010
@@ -35,6 +35,7 @@ import org.eclipse.swt.widgets.Shell;
  */
 public class DeleteServerDialog extends MessageDialog
 {
+    /** The server */
     protected LdapServer server;
 
 
@@ -58,13 +59,4 @@ public class DeleteServerDialog extends 
         this.server = server;
         message = NLS.bind( Messages.getString( "DeleteServerDialog.SureToDelete" ), server.getName()
); //$NON-NLS-1$
     }
-
-
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.dialogs.MessageDialog#buttonPressed(int)
-     */
-    protected void buttonPressed( int buttonId )
-    {
-        super.buttonPressed( buttonId );
-    }
 }
\ No newline at end of file

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerAdapterExtension.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerAdapterExtension.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerAdapterExtension.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerAdapterExtension.java
Tue Jul 20 14:16:43 2010
@@ -32,20 +32,36 @@ import org.eclipse.jface.resource.ImageD
  */
 public class LdapServerAdapterExtension
 {
+    /** The ID */
     private String id;
+
+    /** The name*/
     private String name;
+
+    /** The version */
     private String version;
+
+    /** The vendor */
     private String vendor;
+
+    /** The class name */
     private String className;
+
+    /** The {@link LdapServerAdapter} instance */
     private LdapServerAdapter instance;
+
+    /** The description */
     private String description;
+
+    /** The icon */
     private ImageDescriptor icon;
 
 
     /**
-     * TODO getClassName.
+     * Gets the class name.
      *
      * @return
+     *      the class name
      */
     public String getClassName()
     {
@@ -54,9 +70,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO getDescription.
+     * Gets the description.
      *
      * @return
+     *      the description
      */
     public String getDescription()
     {
@@ -65,9 +82,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO getIcon.
+     * Gets the icon.
      *
      * @return
+     *      the icon
      */
     public ImageDescriptor getIcon()
     {
@@ -76,9 +94,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO getId.
+     * Gets the ID.
      *
      * @return
+     *      the ID
      */
     public String getId()
     {
@@ -87,9 +106,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO getInstance.
+     * Gets the {@link LdapServerAdapter} instance.
      *
      * @return
+     *      the {@link LdapServerAdapter} instance
      */
     public LdapServerAdapter getInstance()
     {
@@ -98,9 +118,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO getName.
+     * Gets the name.
      *
      * @return
+     *      the name
      */
     public String getName()
     {
@@ -109,9 +130,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO vendor.
+     * Gets the vendor.
      *
      * @return
+     *      the vendor
      */
     public String getVendor()
     {
@@ -120,9 +142,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO getVersion.
+     * Gets the version.
      *
      * @return
+     *      the version
      */
     public String getVersion()
     {
@@ -131,9 +154,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO setClassName.
+     * Sets the class name.
      *
      * @param className
+     *      the class name
      */
     public void setClassName( String className )
     {
@@ -142,9 +166,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO setDescription.
+     * Sets the description.
      *
      * @param description
+     *      the description
      */
     public void setDescription( String description )
     {
@@ -153,9 +178,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO setIcon.
+     * Sets the icon.
      *
      * @param icon
+     *      the icon
      */
     public void setIcon( ImageDescriptor icon )
     {
@@ -164,9 +190,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO setId.
+     * Sets the ID.
      *
      * @param id
+     *      the ID
      */
     public void setId( String id )
     {
@@ -175,9 +202,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO setInstance.
+     * Sets the {@link LdapServerAdapter} instance.
      *
      * @param instance
+     *      the {@link LdapServerAdapter} instance
      */
     public void setInstance( LdapServerAdapter instance )
     {
@@ -186,9 +214,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO setName.
+     * Sets the name.
      *
      * @param name
+     *      the name
      */
     public void setName( String name )
     {
@@ -197,9 +226,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO setVendor.
+     * Sets the vendor.
      *
      * @param vendor
+     *      the vendor
      */
     public void setVendor( String vendor )
     {
@@ -208,9 +238,10 @@ public class LdapServerAdapterExtension
 
 
     /**
-     * TODO setVersion.
+     * Sets the version.
      *
      * @param version
+     *      the version
      */
     public void setVersion( String version )
     {

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerEvent.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerEvent.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerEvent.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/model/LdapServerEvent.java
Tue Jul 20 14:16:43 2010
@@ -34,6 +34,14 @@ public class LdapServerEvent
     private LdapServerEventType kind;
 
 
+    /**
+     * Creates a new instance of LdapServerEvent.
+     *
+     * @param server
+     *      the server
+     * @param kind
+     *      the kind of event
+     */
     public LdapServerEvent( LdapServer server, LdapServerEventType kind )
     {
         super();
@@ -42,24 +50,48 @@ public class LdapServerEvent
     }
 
 
+    /**
+     * Gets the server.
+     *
+     * @return
+     *      the server
+     */
     public LdapServer getServer()
     {
         return server;
     }
 
 
+    /**
+     * Sets the server.
+     *
+     * @param server
+     *      the server
+     */
     public void setServer( LdapServer server )
     {
         this.server = server;
     }
 
 
+    /**
+     * Gets the kind of event.
+     *
+     * @return
+     *      the kind of event
+     */
     public LdapServerEventType getKind()
     {
         return kind;
     }
 
 
+    /**
+     * Sets the kind of event.
+     *
+     * @param kind
+     *      the kind of event
+     */
     public void setKind( LdapServerEventType kind )
     {
         this.kind = kind;

Modified: 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=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/ServerPropertyPage.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/properties/ServerPropertyPage.java
Tue Jul 20 14:16:43 2010
@@ -47,13 +47,12 @@ public class ServerPropertyPage extends 
     public ServerPropertyPage()
     {
         super();
-        
         super.noDefaultAndApplyButton();
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
+    /**
+     * {@inheritDoc}
      */
     protected Control createContents( Composite parent )
     {

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServerAdaptersView.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServerAdaptersView.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServerAdaptersView.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServerAdaptersView.java
Tue Jul 20 14:16:43 2010
@@ -40,11 +40,12 @@ import org.eclipse.ui.part.ViewPart;
  */
 public class ServerAdaptersView extends ViewPart
 {
+    /** The table viewer */
     private TableViewer tableViewer;
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
+    /**
+     * {@inheritDoc}
      */
     public void createPartControl( Composite parent )
     {
@@ -72,7 +73,9 @@ public class ServerAdaptersView extends 
     }
 
 
-    @Override
+    /**
+     * {@inheritDoc}
+     */
     public void setFocus()
     {
         tableViewer.getTable().setFocus();

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersTableViewer.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersTableViewer.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersTableViewer.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersTableViewer.java
Tue Jul 20 14:16:43 2010
@@ -77,6 +77,12 @@ public class ServersTableViewer extends 
     private List<LdapServer> serversNeedingAnimation = new ArrayList<LdapServer>();
 
 
+    /**
+     * Creates a new instance of ServersTableViewer.
+     *
+     * @param tree
+     *      the associated tree
+     */
     public ServersTableViewer( Tree tree )
     {
         super( tree );

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=965857&r1=965856&r2=965857&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 20 14:16:43 2010
@@ -69,7 +69,7 @@ import org.eclipse.ui.part.ViewPart;
 public class ServersView extends ViewPart
 {
     /** The ID of the view */
-    //    public static final String ID = ApacheDsPluginConstants.VIEW_SERVERS_VIEW;
+    //    public static final String ID = ApacheDsPluginConstants.VIEW_SERVERS_VIEW; // TODO
 
     /** The tree*/
     private Tree tree;

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewContentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewContentProvider.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewContentProvider.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewContentProvider.java
Tue Jul 20 14:16:43 2010
@@ -33,8 +33,8 @@ import org.eclipse.jface.viewers.Viewer;
  */
 public class ServersViewContentProvider implements IStructuredContentProvider, ITreeContentProvider
 {
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
+    /**
+     * {@inheritDoc}
      */
     public Object[] getElements( Object inputElement )
     {
@@ -42,8 +42,8 @@ public class ServersViewContentProvider 
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.viewers.IContentProvider#dispose()
+    /**
+     * {@inheritDoc}
      */
     public void dispose()
     {
@@ -51,8 +51,8 @@ public class ServersViewContentProvider 
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer,
java.lang.Object, java.lang.Object)
+    /**
+     * {@inheritDoc}
      */
     public void inputChanged( Viewer viewer, Object oldInput, Object newInput )
     {
@@ -60,8 +60,8 @@ public class ServersViewContentProvider 
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object)
+    /**
+     * {@inheritDoc}
      */
     public Object[] getChildren( Object parentElement )
     {
@@ -69,8 +69,8 @@ public class ServersViewContentProvider 
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object)
+    /**
+     * {@inheritDoc}
      */
     public Object getParent( Object element )
     {
@@ -78,8 +78,8 @@ public class ServersViewContentProvider 
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object)
+    /**
+     * {@inheritDoc}
      */
     public boolean hasChildren( Object element )
     {

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewLabelProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewLabelProvider.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewLabelProvider.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewLabelProvider.java
Tue Jul 20 14:16:43 2010
@@ -36,14 +36,17 @@ import org.eclipse.swt.graphics.Image;
  */
 public class ServersViewLabelProvider extends LabelProvider implements ITableLabelProvider
 {
+    // Static strings for dots
     private static final String THREE_DOTS = "..."; //$NON-NLS-1$
     private static final String TWO_DOTS = ".."; //$NON-NLS-1$
     private static final String ONE_DOT = "."; //$NON-NLS-1$
-    private int count = 1;
 
+    /** The counter used for dots */
+    private int dotsCount = 1;
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object,
int)
+
+    /**
+     * {@inheritDoc}
      */
     public String getColumnText( Object element, int columnIndex )
     {
@@ -78,13 +81,19 @@ public class ServersViewLabelProvider ex
     }
 
 
+    /**
+     * Gets the dotted string, based on the current dotsCount.
+     *
+     * @return
+     *      the dotted string, based on the current dotsCount
+     */
     private String getDots()
     {
-        if ( count == 1 )
+        if ( dotsCount == 1 )
         {
             return ServersViewLabelProvider.ONE_DOT;
         }
-        else if ( count == 2 )
+        else if ( dotsCount == 2 )
         {
             return ServersViewLabelProvider.TWO_DOTS;
         }
@@ -95,8 +104,8 @@ public class ServersViewLabelProvider ex
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object,
int)
+    /**
+     * {@inheritDoc}
      */
     public Image getColumnImage( Object element, int columnIndex )
     {
@@ -113,7 +122,7 @@ public class ServersViewLabelProvider ex
                     case STARTED:
                         return LdapServersPlugin.getDefault().getImage( LdapServersPluginConstants.IMG_SERVER_STARTED
);
                     case STARTING:
-                        switch ( count )
+                        switch ( dotsCount )
                         {
                             case 1:
                                 return LdapServersPlugin.getDefault().getImage(
@@ -128,7 +137,7 @@ public class ServersViewLabelProvider ex
                     case STOPPED:
                         return LdapServersPlugin.getDefault().getImage( LdapServersPluginConstants.IMG_SERVER_STOPPED
);
                     case STOPPING:
-                        switch ( count )
+                        switch ( dotsCount )
                         {
                             case 1:
                                 return LdapServersPlugin.getDefault().getImage(
@@ -155,11 +164,11 @@ public class ServersViewLabelProvider ex
      */
     public void animate()
     {
-        count++;
+        dotsCount++;
 
-        if ( count > 3 )
+        if ( dotsCount > 3 )
         {
-            count = 1;
+            dotsCount = 1;
         }
     }
 }

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewerComparator.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewerComparator.java?rev=965857&r1=965856&r2=965857&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewerComparator.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/views/ServersViewerComparator.java
Tue Jul 20 14:16:43 2010
@@ -187,8 +187,8 @@ public class ServersViewerComparator ext
     }
 
 
-    /* (non-Javadoc)
-     * @see org.eclipse.jface.viewers.ViewerComparator#compare(org.eclipse.jface.viewers.Viewer,
java.lang.Object, java.lang.Object)
+    /**
+     * {@inheritDoc}
      */
     public int compare( Viewer viewer, Object e1, Object e2 )
     {



Mime
View raw message