directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r490972 - in /directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller: ./ actions/
Date Fri, 29 Dec 2006 09:56:23 GMT
Author: pamarcelot
Date: Fri Dec 29 01:56:22 2006
New Revision: 490972

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

Modified:
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/AttributesViewController.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/BrowserViewController.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/PreferenceInitializer.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeDeleteAction.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeEditAction.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeNewAction.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionDeleteAction.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionEditAction.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionNewAction.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/EntryDeleteAction.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/EntryNewAction.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RefreshAction.java
    directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/AttributesViewController.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/AttributesViewController.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/AttributesViewController.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/AttributesViewController.java
Fri Dec 29 01:56:22 2006
@@ -37,7 +37,6 @@
 import org.eclipse.jface.viewers.TreeSelection;
 import org.eclipse.swt.events.SelectionAdapter;
 import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Table;
 import org.eclipse.swt.widgets.Tree;
 import org.eclipse.ui.ISelectionListener;
 import org.eclipse.ui.IWorkbenchPart;
@@ -47,6 +46,7 @@
  * This class is the Controller for the Attributes View.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class AttributesViewController implements IMenuListener
 {
@@ -79,6 +79,7 @@
      * Use this method to get the singleton instance of the controller
      * 
      * @return
+     *      an instance of the controller
      */
     public static AttributesViewController getInstance()
     {
@@ -90,7 +91,7 @@
      * Sets the controlled View
      * 
      * @param view
-     *                the controlled View
+     *      the controlled View
      */
     public void setView( final AttributesView view )
     {
@@ -139,7 +140,7 @@
     public void createActions()
     {
         // Creating Actions
-        attributeNewAction = new AttributeNewAction( view, "New attribute" );
+        attributeNewAction = new AttributeNewAction( "New attribute" );
         attributeEditAction = new AttributeEditAction( view, "Edit attribute" );
         attributeDeleteAction = new AttributeDeleteAction( view, "Delete attribute" );
 
@@ -229,7 +230,8 @@
     /**
      * Gets the AttibuteNewAction
      * 
-     * @return the AttibuteNewAction
+     * @return
+     *      the AttibuteNewAction
      */
     public IAction getAttributeNewAction()
     {
@@ -240,7 +242,8 @@
     /**
      * Gets the AttributeEditAction
      * 
-     * @return the AttributeEditAction
+     * @return 
+     *      the AttributeEditAction
      */
     public IAction getAttributeEditAction()
     {
@@ -251,7 +254,8 @@
     /**
      * Gets the AttributeDeleteAction
      * 
-     * @return the AttributeDeleteAction
+     * @return 
+     *      the AttributeDeleteAction
      */
     public IAction getAttributeDeleteAction()
     {

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/BrowserViewController.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/BrowserViewController.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/BrowserViewController.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/BrowserViewController.java
Fri Dec 29 01:56:22 2006
@@ -47,6 +47,7 @@
  * This class is the Controller for the Browser View.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class BrowserViewController implements IMenuListener
 {
@@ -85,6 +86,7 @@
      * Use this method to get the singleton instance of the controller
      * 
      * @return
+     *          an instance of the controller
      */
     public static BrowserViewController getInstance()
     {
@@ -114,7 +116,7 @@
      * Sets the controlled View
      * 
      * @param view
-     *                the controlled View
+     *          the controlled View
      */
     public void setView( final BrowserView view )
     {
@@ -143,11 +145,11 @@
      */
     public void createActions()
     {
-        connectionNewAction = new ConnectionNewAction( view, "New connection" );
+        connectionNewAction = new ConnectionNewAction( "New connection" );
         connectionDeleteAction = new ConnectionDeleteAction( view, "Delete connection" );
         connectionEditAction = new ConnectionEditAction( view, "Edit connection" );
         refreshAction = new RefreshAction( view, "Refresh" );
-        entryNewAction = new EntryNewAction( view, "New entry" );
+        entryNewAction = new EntryNewAction( "New entry" );
         entryDeleteAction = new EntryDeleteAction( view, "Delete entry" );
 
         registerUpdateActions();
@@ -199,7 +201,8 @@
     /**
      * Gets the ConnectionDeleteAction
      * 
-     * @return the ConnectionDeleteAction
+     * @return
+     *          the ConnectionDeleteAction
      */
     public IAction getConnectionDeleteAction()
     {
@@ -210,7 +213,8 @@
     /**
      * Gets the ConnectionNewAction
      * 
-     * @return the ConnectionNewAction
+     * @return
+     *          the ConnectionNewAction
      */
     public IAction getConnectionNewAction()
     {
@@ -221,7 +225,8 @@
     /**
      * Gets the ConnectionEditAction
      * 
-     * @return the ConnectionEditAction
+     * @return
+     *          the ConnectionEditAction
      */
     public IAction getConnectionEditAction()
     {
@@ -232,7 +237,8 @@
     /**
      * Gets the RefreshAction
      * 
-     * @return the RefreshAction
+     * @return
+     *          the RefreshAction
      */
     public IAction getRefreshAction()
     {
@@ -243,7 +249,8 @@
     /**
      * Gets the EntryDeleteAction
      * 
-     * @return the EntryDeleteAction
+     * @return
+     *          the EntryDeleteAction
      */
     public IAction getEntryDeleteAction()
     {
@@ -254,7 +261,8 @@
     /**
      * Gets the EntryNewAction
      * 
-     * @return the EntryNewAction
+     * @return
+     *          the EntryNewAction
      */
     public IAction getEntryNewAction()
     {

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/PreferenceInitializer.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/PreferenceInitializer.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/PreferenceInitializer.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/PreferenceInitializer.java
Fri Dec 29 01:56:22 2006
@@ -31,10 +31,13 @@
  * This class initializes the preferences on the first start up of the plugin
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class PreferenceInitializer extends AbstractPreferenceInitializer
 {
-
+    /* (non-Javadoc)
+     * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
+     */
     @Override
     public void initializeDefaultPreferences()
     {

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeDeleteAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeDeleteAction.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeDeleteAction.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeDeleteAction.java
Fri Dec 29 01:56:22 2006
@@ -49,6 +49,7 @@
  * This class implements the Attribute Delete Action.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class AttributeDeleteAction extends Action
 {
@@ -59,9 +60,9 @@
      * Creates a new instance of AttributeDeleteAction.
      * 
      * @param view
-     *                the associated view
+     *      the associated view
      * @param text
-     *                the associated text
+     *      the associated text
      */
     public AttributeDeleteAction( AttributesView view, String text )
     {
@@ -73,6 +74,9 @@
     }
 
 
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.action.Action#run()
+     */
     @SuppressWarnings("unchecked")
     public void run()
     {

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeEditAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeEditAction.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeEditAction.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeEditAction.java
Fri Dec 29 01:56:22 2006
@@ -32,6 +32,7 @@
  * This class implements the Attribute Edit Action.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class AttributeEditAction extends Action
 {
@@ -42,9 +43,9 @@
      * Creates a new instance of AttributeEditAction.
      * 
      * @param view
-     *                the associated view
+     *      the associated view
      * @param text
-     *                the string used as the text for the action
+     *      the string used as the text for the action
      */
     public AttributeEditAction( AttributesView view, String text )
     {

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeNewAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeNewAction.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeNewAction.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/AttributeNewAction.java
Fri Dec 29 01:56:22 2006
@@ -24,7 +24,6 @@
 import org.apache.directory.ldapstudio.browser.Activator;
 import org.apache.directory.ldapstudio.browser.view.ImageKeys;
 import org.apache.directory.ldapstudio.browser.view.views.AttributeAddWizard;
-import org.apache.directory.ldapstudio.browser.view.views.AttributesView;
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.wizard.WizardDialog;
 import org.eclipse.ui.PlatformUI;
@@ -35,21 +34,27 @@
  * This class implements the Attribute New Action.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class AttributeNewAction extends Action
 {
-    private AttributesView view;
-
-
-    public AttributeNewAction( AttributesView view, String text )
+    /**
+     * Creates a new instance of AttributeNewAction.
+     *
+     * @param text
+     *      the string used as the text for the action, or null if there is no text
+     */
+    public AttributeNewAction( String text )
     {
         super( text );
         setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
ImageKeys.ATTRIBUTE_NEW ) );
         setToolTipText( "New attribute" );
-        this.view = view;
     }
 
 
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.action.Action#run()
+     */
     public void run()
     {
         // Creating the Wizard and opening it

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionDeleteAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionDeleteAction.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionDeleteAction.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionDeleteAction.java
Fri Dec 29 01:56:22 2006
@@ -38,12 +38,21 @@
  * This class implements the Connection Delete Action.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class ConnectionDeleteAction extends Action
 {
     private BrowserView view;
 
 
+    /**
+     * Creates a new instance of ConnectionDeleteAction.
+     *
+     * @param view
+     *      the attached view
+     * @param text
+     *      the string used as the text for the action, or null if there is no text
+     */
     public ConnectionDeleteAction( BrowserView view, String text )
     {
         super( text );
@@ -54,6 +63,9 @@
     }
 
 
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.action.Action#run()
+     */
     public void run()
     {
         // Getting the selected connection

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionEditAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionEditAction.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionEditAction.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionEditAction.java
Fri Dec 29 01:56:22 2006
@@ -41,12 +41,21 @@
  * This class implements the Connection Edit Action
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class ConnectionEditAction extends Action
 {
     private BrowserView view;
 
-
+    
+    /**
+     * Creates a new instance of ConnectionEditAction.
+     *
+     * @param view
+     *      the attached view
+     * @param text
+     *      the string used as the text for the action, or null if there is no text
+     */
     public ConnectionEditAction( BrowserView view, String text )
     {
         super( text );
@@ -56,6 +65,9 @@
     }
 
 
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.action.Action#run()
+     */
     public void run()
     {
         // Getting the selected connection

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionNewAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionNewAction.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionNewAction.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/ConnectionNewAction.java
Fri Dec 29 01:56:22 2006
@@ -25,7 +25,6 @@
 import org.apache.directory.ldapstudio.browser.model.Connection;
 import org.apache.directory.ldapstudio.browser.model.Connections;
 import org.apache.directory.ldapstudio.browser.view.ImageKeys;
-import org.apache.directory.ldapstudio.browser.view.views.BrowserView;
 import org.apache.directory.ldapstudio.browser.view.views.ConnectionWizard;
 import org.apache.directory.ldapstudio.browser.view.views.ConnectionWizard.ConnectionWizardType;
 import org.eclipse.jface.action.Action;
@@ -39,21 +38,27 @@
  * This class implements the Connection New Action
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class ConnectionNewAction extends Action
 {
-    private BrowserView view;
-
-
-    public ConnectionNewAction( BrowserView view, String text )
+    /**
+     * Creates a new instance of ConnectionNewAction.
+     *
+     * @param text
+     *       the string used as the text for the action, or null if there is no text
+     */
+    public ConnectionNewAction( String text )
     {
         super( text );
         setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
ImageKeys.CONNECTION_NEW ) );
         setToolTipText( "New connection" );
-        this.view = view;
     }
 
 
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.action.Action#run()
+     */
     public void run()
     {
         // Creating the new Connection

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/EntryDeleteAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/EntryDeleteAction.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/EntryDeleteAction.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/EntryDeleteAction.java
Fri Dec 29 01:56:22 2006
@@ -46,12 +46,21 @@
  * This class implements the Entry Delete Action
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class EntryDeleteAction extends Action
 {
     private BrowserView view;
 
 
+    /**
+     * Creates a new instance of EntryDeleteAction.
+     *
+     * @param view
+     *      the attached view
+     * @param text
+     *      the string used as the text for the action, or null if there is no text
+     */
     public EntryDeleteAction( BrowserView view, String text )
     {
         super( text );
@@ -61,6 +70,9 @@
     }
 
 
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.action.Action#run()
+     */
     public void run()
     {
         boolean answer = MessageDialog.openConfirm( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/EntryNewAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/EntryNewAction.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/EntryNewAction.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/EntryNewAction.java
Fri Dec 29 01:56:22 2006
@@ -23,7 +23,6 @@
 
 import org.apache.directory.ldapstudio.browser.Activator;
 import org.apache.directory.ldapstudio.browser.view.ImageKeys;
-import org.apache.directory.ldapstudio.browser.view.views.BrowserView;
 import org.eclipse.jface.action.Action;
 import org.eclipse.ui.plugin.AbstractUIPlugin;
 
@@ -32,21 +31,27 @@
  * This class implements the Entry New Action
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class EntryNewAction extends Action
 {
-    private BrowserView view;
-
-
-    public EntryNewAction( BrowserView view, String text )
+    /**
+     * Creates a new instance of EntryNewAction.
+     *
+     * @param text
+     *      the string used as the text for the action, or null if there is no text
+     */
+    public EntryNewAction( String text )
     {
         super( text );
         setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
ImageKeys.ENTRY_NEW ) );
         setToolTipText( "New entry" );
-        this.view = view;
     }
 
 
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.action.Action#run()
+     */
     public void run()
     {
         System.out.println( "New entry" );

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RefreshAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RefreshAction.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RefreshAction.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RefreshAction.java
Fri Dec 29 01:56:22 2006
@@ -38,12 +38,21 @@
  * This class implements the Refresh Action
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class RefreshAction extends Action
 {
     private BrowserView view;
 
 
+    /**
+     * Creates a new instance of RefreshAction.
+     *
+     * @param view
+     *      the attached view
+     * @param text
+     *      the string used as the text for the action, or null if there is no text
+     */
     public RefreshAction( BrowserView view, String text )
     {
         super( text );
@@ -53,6 +62,9 @@
     }
 
 
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.action.Action#run()
+     */
     public void run()
     {
         TreeViewer viewer = view.getViewer();

Modified: directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java?view=diff&rev=490972&r1=490971&r2=490972
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-ldapbrowser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java
Fri Dec 29 01:56:22 2006
@@ -33,14 +33,8 @@
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.jface.viewers.TreeSelection;
-import org.eclipse.swt.SWT;
 import org.eclipse.swt.custom.TableEditor;
-import org.eclipse.swt.events.FocusAdapter;
-import org.eclipse.swt.events.FocusEvent;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
 import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableItem;
 import org.eclipse.swt.widgets.Text;
 import org.eclipse.ui.PlatformUI;
 
@@ -49,6 +43,7 @@
  * This class implements the Rename Attribute Action.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
  */
 public class RenameAttributeAction extends Action
 {
@@ -56,6 +51,7 @@
 
     private AttributesView view;
 
+    @SuppressWarnings("unused")
     private Table table;
 
     private TableEditor tableEditor;
@@ -63,6 +59,7 @@
     private Text textEditor;
 
     // A flag to not update twice the server
+    @SuppressWarnings("unused")
     private boolean done = false;
 
 
@@ -70,9 +67,9 @@
      * Creates a new instance of RenameAttributeAction.
      * 
      * @param view
-     *                the associated view
+     *      the associated view
      * @param text
-     *                the string used as the text for the action
+     *      the string used as the text for the action
      */
     public RenameAttributeAction( AttributesView view, String text )
     {
@@ -164,6 +161,7 @@
     /**
      * Saves the changes made in the editor and disposes the editor
      */
+    @SuppressWarnings("unused")
     private void saveChangesAndDisposeEditor()
     {
         if ( !getAttributeValue().equals( textEditor.getText() ) )
@@ -192,7 +190,8 @@
     /**
      * Gets the name of the selected attribute
      * 
-     * @return the name of the selected attribute
+     * @return
+     *      the name of the selected attribute
      */
     private String getAttributeName()
     {
@@ -205,7 +204,8 @@
     /**
      * Gets the value of the selected attribute
      * 
-     * @return the value of the selected attribute
+     * @return
+     *      the value of the selected attribute
      */
     private String getAttributeValue()
     {
@@ -217,8 +217,6 @@
 
     /**
      * Saves the changes made in the editor on the server
-     * 
-     * @param newText
      */
     private void saveChanges()
     {



Mime
View raw message