directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r494113 [2/2] - in /directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui: ./ actions/ editors/searchresult/ widgets/entryeditor/
Date Mon, 08 Jan 2007 16:28:27 GMT
Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewAttributeAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewAttributeAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewAttributeAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewAttributeAction.java Mon Jan  8 08:28:22 2007
@@ -36,21 +36,35 @@
 import org.eclipse.swt.widgets.Display;
 
 
+/**
+ * This Action creates a new Attribute
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class NewAttributeAction extends BrowserAction implements ModelModifier
 {
-
+    /**
+     * Creates a new instance of NewAttributeAction.
+     */
     public NewAttributeAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void dispose()
     {
         super.dispose();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
 
@@ -105,24 +119,36 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "New Attribute...";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_ATTRIBUTE_ADD );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return "org.apache.directory.ldapstudio.browser.action.addAttribute";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
 
@@ -134,5 +160,4 @@
         return ( ( getInput() != null && getInput() instanceof IEntry ) || getSelectedEntries().length == 1
             || getSelectedAttributes().length > 0 || getSelectedValues().length > 0 );
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewBatchOperationAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewBatchOperationAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewBatchOperationAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewBatchOperationAction.java Mon Jan  8 08:28:22 2007
@@ -28,35 +28,55 @@
 import org.eclipse.jface.wizard.WizardDialog;
 
 
+/**
+ * This Action opens the New Batch Operation Dialog.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class NewBatchOperationAction extends BrowserAction
 {
 
+    /**
+     * Creates a new instance of NewBatchOperationAction.
+     */
     public NewBatchOperationAction()
     {
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "New Batch Operation...";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_BATCH );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
-
         return getSelectedSearches().length == 1
             && getSelectedSearches()[0].getSearchResults() != null
             || getSelectedEntries().length + getSelectedSearchResults().length + getSelectedBookmarks().length
@@ -64,15 +84,15 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
-
         BatchOperationWizard wizard = new BatchOperationWizard();
         WizardDialog dialog = new WizardDialog( getShell(), wizard );
         dialog.setBlockOnOpen( true );
         dialog.create();
         dialog.open();
-
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewBookmarkAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewBookmarkAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewBookmarkAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewBookmarkAction.java Mon Jan  8 08:28:22 2007
@@ -33,14 +33,25 @@
 import org.eclipse.ui.PlatformUI;
 
 
+/**
+ * This Action creates a new Bookmark.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class NewBookmarkAction extends BrowserAction
 {
-
+    /**
+     * Creates a new instance of NewBookmarkAction.
+     */
     public NewBookmarkAction()
     {
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         NewBookmarkWizard wizard = new NewBookmarkWizard();
@@ -53,9 +64,14 @@
     }
 
 
+    /**
+     * Gets the entry associated with the Bookmark
+     *
+     * @return
+     *      the entry associated with the Bookmark
+     */
     private IEntry getEntry()
     {
-
         if ( this.getSelectedEntries().length + this.getSelectedSearchResults().length
             + this.getSelectedBookmarks().length != 1 )
         {
@@ -79,27 +95,38 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "New Bookmark...";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_BOOKMARK_ADD );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         return getEntry() != null && getEntry().getConnection() != null && getEntry().getConnection().isOpened();
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewConnectionAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewConnectionAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewConnectionAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewConnectionAction.java Mon Jan  8 08:28:22 2007
@@ -28,15 +28,26 @@
 import org.eclipse.jface.wizard.WizardDialog;
 
 
+/**
+ * This Action launches the New Connection Wizard.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class NewConnectionAction extends BrowserAction
 {
-
+    /**
+     * Creates a new instance of NewConnectionAction.
+     */
     public NewConnectionAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         NewConnectionWizard wizard = new NewConnectionWizard();
@@ -47,24 +58,36 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "New Connection...";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_CONNECTION_ADD );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         return true;

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewEntryAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewEntryAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewEntryAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewEntryAction.java Mon Jan  8 08:28:22 2007
@@ -30,17 +30,31 @@
 import org.eclipse.ui.IWorkbenchWindow;
 
 
+/**
+ * This Action lauches the New Entry Wizard.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class NewEntryAction extends BrowserAction
 {
-
     private IWorkbenchWindow window;
 
 
+    /**
+     * Creates a new instance of NewEntryAction.
+     */
     public NewEntryAction()
     {
     }
 
 
+    /**
+     * Creates a new instance of NewEntryAction.
+     *
+     * @param window
+     *      the associated Window
+     */
     public NewEntryAction( IWorkbenchWindow window )
     {
         super();
@@ -48,6 +62,9 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void dispose()
     {
         super.dispose();
@@ -55,6 +72,9 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void init( IWorkbenchWindow window )
     {
         super.init( window );
@@ -62,6 +82,9 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         NewEntryWizard wizard = new NewEntryWizard();
@@ -75,24 +98,36 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "New Entry...";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_ENTRY_ADD );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         return this.getSelectedEntries().length + this.getSelectedSearchResults().length

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewLdifFileAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewLdifFileAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewLdifFileAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewLdifFileAction.java Mon Jan  8 08:28:22 2007
@@ -32,15 +32,27 @@
 import org.eclipse.ui.PlatformUI;
 
 
+/**
+ * This Action launches a new empty LDIF Editor. 
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class NewLdifFileAction extends BrowserAction
 {
-
+    /**
+     * Creates a new instance of NewLdifFileAction.
+     *
+     */
     public NewLdifFileAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         IEditorInput input = new NonExistingLdifEditorInput();
@@ -56,27 +68,38 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "New LDIF File";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_LDIFEDITOR_NEW );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         return true;
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewSearchAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewSearchAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewSearchAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewSearchAction.java Mon Jan  8 08:28:22 2007
@@ -29,45 +29,66 @@
 import org.eclipse.ui.PlatformUI;
 
 
+/**
+ * This Action opens a new Search Dialog.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class NewSearchAction extends BrowserAction
 {
-
+    /**
+     * Creates a new instance of NewSearchAction.
+     */
     public NewSearchAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         NewSearchUI.openSearchDialog( PlatformUI.getWorkbench().getActiveWorkbenchWindow(), SearchPage.getId() );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "New Search...";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_SEARCH_NEW );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return "org.eclipse.search.ui.openSearchDialog";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         return getSelectedEntries().length + getSelectedSearchResults().length + getSelectedSearches().length
             + getSelectedBookmarks().length + getSelectedConnections().length + getSelectedAttributes().length
             + getSelectedAttributeHierarchies().length + getSelectedValues().length > 0;
-
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewValueAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewValueAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewValueAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/NewValueAction.java Mon Jan  8 08:28:22 2007
@@ -29,21 +29,35 @@
 import org.eclipse.jface.resource.ImageDescriptor;
 
 
+/**
+ * This Action adds a new Value to an Attribute.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class NewValueAction extends BrowserAction implements ModelModifier
 {
-
+    /**
+     * Creates a new instance of NewValueAction.
+     */
     public NewValueAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void dispose()
     {
         super.dispose();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         if ( getSelectedValues().length == 1 )
@@ -66,27 +80,38 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "New Value";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_VALUE_ADD );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return "org.apache.directory.ldapstudio.browser.action.addValue";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
-
         // System.out.println(getSelectedAttributeArrays());
         // System.out.print("==> ");
         // IAttribute[][] attArr = getSelectedAttributeArrays();
@@ -110,5 +135,4 @@
                 && getSelectedAttributes().length == 0 && getSelectedAttributeHierarchies().length == 1 && SchemaUtils
                 .isModifyable( getSelectedAttributeHierarchies()[0].getAttribute().getAttributeTypeDescription() ) );
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenConnectionAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenConnectionAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenConnectionAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenConnectionAction.java Mon Jan  8 08:28:22 2007
@@ -28,15 +28,26 @@
 import org.eclipse.jface.resource.ImageDescriptor;
 
 
+/**
+ * This Action opens a Connection.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class OpenConnectionAction extends BrowserAction
 {
-
+    /**
+     * Creates a new instance of OpenConnectionAction.
+     */
     public OpenConnectionAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         OpenConnectionsJob ocj = new OpenConnectionsJob( getSelectedConnections() );
@@ -44,24 +55,36 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return getSelectedConnections().length > 1 ? "Open Connections" : "Open Connection";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_CONNECTION_CONNECT );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         boolean canOpen = false;
@@ -75,5 +98,4 @@
         }
         return getSelectedConnections().length > 0 && canOpen;
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenEncoderDecoderDialogAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenEncoderDecoderDialogAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenEncoderDecoderDialogAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenEncoderDecoderDialogAction.java Mon Jan  8 08:28:22 2007
@@ -26,15 +26,26 @@
 import org.eclipse.ui.PlatformUI;
 
 
+/**
+ * This Action opens the Encoder/Decoder Dialog.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class OpenEncoderDecoderDialogAction extends BrowserAction
 {
-
+    /**
+     * Creates a new instance of OpenEncoderDecoderDialogAction.
+     */
     public OpenEncoderDecoderDialogAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         EncoderDecoderDialog dlg = new EncoderDecoderDialog( PlatformUI.getWorkbench().getDisplay().getActiveShell() );
@@ -42,27 +53,38 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "Open Encoder/Decoder";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         return true;
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSchemaBrowserAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSchemaBrowserAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSchemaBrowserAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSchemaBrowserAction.java Mon Jan  8 08:28:22 2007
@@ -32,26 +32,55 @@
 import org.eclipse.jface.resource.ImageDescriptor;
 
 
+/**
+ * This Action opens the Schema Browser 
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class OpenSchemaBrowserAction extends BrowserAction
 {
-
+    /**
+     * None Mode
+     */
     public static final int MODE_NONE = 0;
 
+    /**
+     * Object Class Mode
+     */
     public static final int MODE_OBJECTCLASS = 10;
 
+    /**
+     * Attribute Type Mode
+     */
     public static final int MODE_ATTRIBUTETYPE = 20;
 
+    /**
+     * Equality Matching Rule Mode
+     */
     public static final int MODE_EQUALITYMATCHINGRULE = 30;
 
+    /**
+     * Substring Matching Rule Mode
+     */
     public static final int MODE_SUBSTRINGMATCHINGRULE = 31;
 
+    /**
+     * Ordering Matching Rule Mode
+     */
     public static final int MODE_ORDERINGMATCHINGRULE = 32;
 
+    /**
+     * Syntax Mode
+     */
     public static final int MODE_SYNTAX = 40;
 
     protected int mode;
 
 
+    /**
+     * Creates a new instance of OpenSchemaBrowserAction.
+     */
     public OpenSchemaBrowserAction()
     {
         super();
@@ -59,6 +88,12 @@
     }
 
 
+    /**
+     * Creates a new instance of OpenSchemaBrowserAction.
+     *
+     * @param mode
+     *      the display mode
+     */
     public OpenSchemaBrowserAction( int mode )
     {
         super();
@@ -66,6 +101,9 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         if ( mode == MODE_NONE )
@@ -103,6 +141,9 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         if ( mode == MODE_NONE )
@@ -140,6 +181,9 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         if ( mode == MODE_NONE )
@@ -177,12 +221,18 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
 
@@ -221,6 +271,12 @@
     }
 
 
+    /**
+     * Gets the LDAP Syntax Description.
+     *
+     * @return
+     *      the LDAP Syntax Description
+     */
     private LdapSyntaxDescription getLsd()
     {
         AttributeTypeDescription atd = getAtd();
@@ -235,6 +291,12 @@
     }
 
 
+    /**
+     * Gets the Object Class Description.
+     *
+     * @return
+     *      the Object Class Drescription
+     */
     private ObjectClassDescription getOcd()
     {
         if ( getSelectedAttributes().length == 0 && getSelectedValues().length == 1
@@ -254,6 +316,12 @@
     }
 
 
+    /**
+     * Gets the Attribute Type Description.
+     *
+     * @return
+     *      the Attribute Type Description
+     */
     private AttributeTypeDescription getAtd()
     {
         if ( ( getSelectedValues().length + getSelectedAttributes().length ) + getSelectedAttributeHierarchies().length == 1 )
@@ -279,6 +347,12 @@
     }
 
 
+    /**
+     * Gets the Equality Matching Rule Description.
+     *
+     * @return
+     *      the Equality Matching Rule Description
+     */
     private MatchingRuleDescription getEmrd()
     {
         AttributeTypeDescription atd = getAtd();
@@ -293,6 +367,12 @@
     }
 
 
+    /**
+     * Gets the Substring Matching Rule Description.
+     *
+     * @return
+     *      the Substring Matching Rule Description
+     */
     private MatchingRuleDescription getSmrd()
     {
         AttributeTypeDescription atd = getAtd();
@@ -307,6 +387,12 @@
     }
 
 
+    /**
+     * Gets the Ordering Matching Rule Description.
+     *
+     * @return
+     *      the Ordering Matching Rule Description
+     */
     private MatchingRuleDescription getOmrd()
     {
         AttributeTypeDescription atd = getAtd();

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSearchAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSearchAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSearchAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSearchAction.java Mon Jan  8 08:28:22 2007
@@ -33,9 +33,17 @@
 import org.eclipse.ui.PlatformUI;
 
 
+/**
+ * This Action opens the Search Dialog.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class OpenSearchAction extends Action implements IWorkbenchWindowActionDelegate
 {
-
+    /**
+     * Creates a new instance of OpenSearchAction.
+     */
     public OpenSearchAction()
     {
         super( "Search...", Action.AS_PUSH_BUTTON );
@@ -46,30 +54,44 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         NewSearchUI.openSearchDialog( PlatformUI.getWorkbench().getActiveWorkbenchWindow(), SearchPage.getId() );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void init( IWorkbenchWindow window )
     {
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run( IAction action )
     {
         this.run();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void selectionChanged( IAction action, ISelection selection )
     {
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void dispose()
     {
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSearchResultAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSearchResultAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSearchResultAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/OpenSearchResultAction.java Mon Jan  8 08:28:22 2007
@@ -31,15 +31,26 @@
 import org.eclipse.ui.PlatformUI;
 
 
+/**
+ * This Action opens the Search Result View.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class OpenSearchResultAction extends BrowserAction
 {
-
+    /**
+     * Creates a new instance of OpenSearchResultAction.
+     */
     public OpenSearchResultAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         if ( getSelectedSearchResults().length == 1 )
@@ -67,27 +78,38 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "Open Search Result";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_OPEN_SEARCHRESULT );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return "org.apache.directory.ldapstudio.browser.action.openSearchResult";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         return getSelectedSearchResults().length == 1;
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PasteAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PasteAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PasteAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PasteAction.java Mon Jan  8 08:28:22 2007
@@ -44,18 +44,28 @@
 import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds;
 
 
+/**
+ * This class implements the Paste Action.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class PasteAction extends BrowserAction
 {
-
+    /**
+     * Creates a new instance of PasteAction.
+     */
     public PasteAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
-
         // connection
         IConnection[] connections = getConnectionsToPaste();
         if ( connections != null )
@@ -86,18 +96,27 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return PlatformUI.getWorkbench().getSharedImages().getImageDescriptor( ISharedImages.IMG_TOOL_PASTE );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return IWorkbenchActionDefinitionIds.PASTE;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
 
@@ -127,9 +146,11 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
-
         // connection
         IConnection[] connections = getConnectionsToPaste();
         if ( connections != null )
@@ -167,6 +188,14 @@
     }
 
 
+    /**
+     * Pastes the given entries
+     *
+     * @param parent
+     *      the parent Entry
+     * @param entriesToPaste
+     *      the Entries to paste
+     */
     private void pasteEntries( final IEntry parent, final IEntry[] entriesToPaste )
     {
 
@@ -198,6 +227,12 @@
     }
 
 
+    /**
+     * Paste Values
+     *
+     * @param values
+     *      the Values to paste
+     */
     private void pasteValues( IValue[] values )
     {
         IEntry entry = null;
@@ -343,6 +378,14 @@
     }
 
 
+    /**
+     * Retrieve the data of the specified type currently available on the system clipboard.
+     *
+     * @param dataType
+     *      the transfer agent for the type of data being requested
+     * @return
+     *      the data obtained from the clipboard or null if no data of this type is available
+     */
     protected Object getFromClipboard( Transfer dataType )
     {
         Clipboard clipboard = null;
@@ -357,5 +400,4 @@
                 clipboard.dispose();
         }
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PropertiesAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PropertiesAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PropertiesAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PropertiesAction.java Mon Jan  8 08:28:22 2007
@@ -31,33 +31,53 @@
 import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds;
 
 
+/**
+ * This Action opens the Property Dialog for a given object.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class PropertiesAction extends BrowserAction
 {
-
+    /**
+     * Creates a new instance of PropertiesAction.
+     */
     public PropertiesAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "Properties";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return IWorkbenchActionDefinitionIds.PROPERTIES;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
 
@@ -69,6 +89,9 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
 
@@ -135,7 +158,5 @@
             dialog.open();
 
         }
-
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RefreshAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RefreshAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RefreshAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RefreshAction.java Mon Jan  8 08:28:22 2007
@@ -37,15 +37,26 @@
 import org.eclipse.jface.resource.ImageDescriptor;
 
 
+/**
+ * This Action refreshes the selected item.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class RefreshAction extends BrowserAction implements ModelModifier
 {
-
+    /**
+     * Creates a new instance of RefreshAction.
+     */
     public RefreshAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         IEntry[] entries = getEntries();
@@ -92,18 +103,27 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_REFRESH );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return "org.eclipse.ui.file.refresh";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         IEntry[] entries = getEntries();
@@ -133,10 +153,12 @@
             new SearchJob( new ISearch[]
                 { searchInput } ).execute();
         }
-
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         IEntry[] entries = getEntries();
@@ -148,9 +170,15 @@
     }
 
 
+    /**
+     * Gets the Entries
+     *
+     * @return
+     *      the entries
+     */
     protected IEntry[] getEntries()
     {
-        List entriesList = new ArrayList();
+        List<IEntry> entriesList = new ArrayList<IEntry>();
         entriesList.addAll( Arrays.asList( getSelectedEntries() ) );
         for ( int i = 0; i < getSelectedSearchResults().length; i++ )
         {
@@ -164,12 +192,24 @@
     }
 
 
+    /**
+     * Gets the Searches.
+     *
+     * @return
+     *      the Searches
+     */
     protected ISearch[] getSearches()
     {
         return getSelectedSearches();
     }
 
 
+    /**
+     * Gets the Entry Input.
+     *
+     * @return
+     *      the Entry Input
+     */
     private IEntry getEntryInput()
     {
         if ( getInput() != null && getInput() instanceof IEntry )
@@ -183,6 +223,12 @@
     }
 
 
+    /**
+     * Gets the Search Input.
+     *
+     * @return
+     *      the Search Input
+     */
     private ISearch getSearchInput()
     {
         if ( getInput() != null && getInput() instanceof ISearch )
@@ -194,5 +240,4 @@
             return null;
         }
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RenameAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RenameAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RenameAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RenameAction.java Mon Jan  8 08:28:22 2007
@@ -41,15 +41,27 @@
 import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds;
 
 
+/**
+ * This Action renames Connections, Entries, Searches, or Bookmarks.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class RenameAction extends BrowserAction implements ModelModifier
 {
-
+    /**
+     * Creates a new instance of RenameAction.
+     *
+     */
     public RenameAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
 
@@ -81,21 +93,29 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return IWorkbenchActionDefinitionIds.RENAME;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
-
         IConnection[] connections = getConnections();
         IEntry[] entries = getEntries();
         ISearch[] searches = getSearches();
@@ -120,9 +140,11 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
-
         try
         {
             IConnection[] connections = getConnections();
@@ -140,6 +162,12 @@
     }
 
 
+    /**
+     * Gets the Connections
+     * 
+     * @return
+     *      the Connections
+     */
     protected IConnection[] getConnections()
     {
         if ( getSelectedConnections().length == 1 )
@@ -153,6 +181,12 @@
     }
 
 
+    /**
+     * Renames a Connection.
+     *
+     * @param connection
+     *      the Connection to rename
+     */
     protected void renameConnection( final IConnection connection )
     {
         IInputValidator validator = new IInputValidator()
@@ -180,6 +214,12 @@
     }
 
 
+    /**
+     * Gets the Entries
+     *
+     * @return
+     *      the Entries
+     */
     protected IEntry[] getEntries()
     {
 
@@ -211,6 +251,12 @@
     }
 
 
+    /**
+     * Renames an Entry.
+     *
+     * @param entry
+     *      the Entry to rename
+     */
     protected void renameEntry( final IEntry entry )
     {
         RenameEntryDialog renameDialog = new RenameEntryDialog( getShell(), entry );
@@ -226,6 +272,12 @@
     }
 
 
+    /**
+     * Get the Searches.
+     *
+     * @return
+     *      the Searches
+     */
     protected ISearch[] getSearches()
     {
         if ( getSelectedSearches().length == 1 )
@@ -239,6 +291,12 @@
     }
 
 
+    /**
+     * Renames a Search.
+     *
+     * @param search
+     *      the Search to rename
+     */
     protected void renameSearch( final ISearch search )
     {
         IInputValidator validator = new IInputValidator()
@@ -265,6 +323,12 @@
     }
 
 
+    /**
+     * Get the Bookmarks
+     *
+     * @return
+     *      the Bookmarks
+     */
     protected IBookmark[] getBookmarks()
     {
         if ( getSelectedBookmarks().length == 1 )
@@ -278,6 +342,12 @@
     }
 
 
+    /**
+     * Renames a Bookmark
+     *
+     * @param bookmark
+     *      the Bookmark to rename
+     */
     protected void renameBookmark( final IBookmark bookmark )
     {
         IInputValidator validator = new IInputValidator()
@@ -302,5 +372,4 @@
             bookmark.setName( newName );
         }
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/SelectAllAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/SelectAllAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/SelectAllAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/SelectAllAction.java Mon Jan  8 08:28:22 2007
@@ -35,42 +35,63 @@
 import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds;
 
 
+/**
+ * This class implements the Select All Action.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class SelectAllAction extends BrowserAction
 {
-
     private Viewer viewer;
 
 
+    /**
+     * Creates a new instance of SelectAllAction.
+     *
+     * @param viewer
+     *      the attached viewer
+     */
     public SelectAllAction( Viewer viewer )
     {
         this.viewer = viewer;
     }
 
-
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "Select All";
     }
 
-
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return null;
     }
 
-
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return IWorkbenchActionDefinitionIds.SELECT_ALL;
     }
 
-
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         return true;
     }
 
-
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         if ( getInput() != null && getInput() instanceof IEntry )
@@ -101,5 +122,4 @@
             this.viewer.setSelection( selection );
         }
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/SelectionUtils.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/SelectionUtils.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/SelectionUtils.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/SelectionUtils.java Mon Jan  8 08:28:22 2007
@@ -49,9 +49,20 @@
 import org.eclipse.jface.viewers.StructuredSelection;
 
 
+/**
+ * TODO DOCUMENT ME! SelectionUtils.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public abstract class SelectionUtils
 {
-
+    /**
+     * TODO DOCUMENT ME! getExampleSearch.
+     *
+     * @param selection
+     * @return
+     */
     public static ISearch getExampleSearch( ISelection selection )
     {
 
@@ -212,6 +223,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getBrowserViewCategories.
+     *
+     * @param selection
+     * @return
+     */
     public static BrowserCategory[] getBrowserViewCategories( ISelection selection )
     {
         List list = getTypes( selection, BrowserCategory.class );
@@ -219,6 +236,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getValues.
+     *
+     * @param selection
+     * @return
+     */
     public static IValue[] getValues( ISelection selection )
     {
         List list = getTypes( selection, IValue.class );
@@ -226,6 +249,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getAttributes.
+     *
+     * @param selection
+     * @return
+     */
     public static IAttribute[] getAttributes( ISelection selection )
     {
         List list = getTypes( selection, IAttribute.class );
@@ -233,6 +262,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getAttributeHierarchie.
+     *
+     * @param selection
+     * @return
+     */
     public static AttributeHierarchy[] getAttributeHierarchie( ISelection selection )
     {
         List list = getTypes( selection, AttributeHierarchy.class );
@@ -240,6 +275,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getProperties.
+     *
+     * @param selection
+     * @return
+     */
     public static String[] getProperties( ISelection selection )
     {
         List list = getTypes( selection, String.class );
@@ -247,6 +288,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getAttributeTypeDescription.
+     *
+     * @param selection
+     * @return
+     */
     public static AttributeTypeDescription[] getAttributeTypeDescription( ISelection selection )
     {
         List list = getTypes( selection, AttributeTypeDescription.class );
@@ -254,6 +301,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getEntries.
+     *
+     * @param selection
+     * @return
+     */
     public static IEntry[] getEntries( ISelection selection )
     {
         List list = getTypes( selection, IEntry.class );
@@ -261,6 +314,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getBookmarks.
+     *
+     * @param selection
+     * @return
+     */
     public static IBookmark[] getBookmarks( ISelection selection )
     {
         List list = getTypes( selection, IBookmark.class );
@@ -268,6 +327,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getSearchResults.
+     *
+     * @param selection
+     * @return
+     */
     public static ISearchResult[] getSearchResults( ISelection selection )
     {
         List list = getTypes( selection, ISearchResult.class );
@@ -275,6 +340,13 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getTypes.
+     *
+     * @param selection
+     * @param type
+     * @return
+     */
     private static List getTypes( ISelection selection, Class type )
     {
         List list = new ArrayList();
@@ -295,6 +367,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getSearches.
+     *
+     * @param selection
+     * @return
+     */
     public static ISearch[] getSearches( ISelection selection )
     {
         List list = getTypes( selection, ISearch.class );
@@ -302,6 +380,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getConnections.
+     *
+     * @param selection
+     * @return
+     */
     public static IConnection[] getConnections( ISelection selection )
     {
         List list = getTypes( selection, IConnection.class );
@@ -309,6 +393,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getBrowserEntryPages.
+     *
+     * @param selection
+     * @return
+     */
     public static BrowserEntryPage[] getBrowserEntryPages( ISelection selection )
     {
         List list = getTypes( selection, BrowserEntryPage.class );
@@ -316,6 +406,12 @@
     }
 
 
+    /**
+     * TODO DOCUMENT ME! getBrowserSearchResultPages.
+     *
+     * @param selection
+     * @return
+     */
     public static BrowserSearchResultPage[] getBrowserSearchResultPages( ISelection selection )
     {
         List list = getTypes( selection, BrowserSearchResultPage.class );

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/ShowRawValuesAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/ShowRawValuesAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/ShowRawValuesAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/ShowRawValuesAction.java Mon Jan  8 08:28:22 2007
@@ -26,9 +26,17 @@
 import org.eclipse.jface.action.Action;
 
 
+/**
+ * This Action toggles the Show Raw Values Preference.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class ShowRawValuesAction extends Action
 {
-
+    /**
+     * Creates a new instance of ShowRawValuesAction.
+     */
     public ShowRawValuesAction()
     {
         super( "Show Raw Values", AS_CHECK_BOX );
@@ -40,6 +48,9 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         BrowserUIPlugin.getDefault().getPreferenceStore().setValue( BrowserUIConstants.PREFERENCE_SHOW_RAW_VALUES,
@@ -47,20 +58,20 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void setChecked( boolean checked )
     {
         super.setChecked( checked );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isChecked()
     {
         return super.isChecked();
     }
-
-
-    public void dispose()
-    {
-    }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/UnfilterSubtreeAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/UnfilterSubtreeAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/UnfilterSubtreeAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/UnfilterSubtreeAction.java Mon Jan  8 08:28:22 2007
@@ -29,15 +29,26 @@
 import org.eclipse.jface.resource.ImageDescriptor;
 
 
+/**
+ * TODO DOCUMENT ME! UnfilterSubtreeAction.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class UnfilterSubtreeAction extends BrowserAction
 {
-
+    /**
+     * Creates a new instance of UnfilterSubtreeAction.
+     */
     public UnfilterSubtreeAction()
     {
         super();
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         if ( getSelectedEntries().length == 1 )
@@ -49,28 +60,39 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "Remove Subtree Filter";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_UNFILTER_DIT );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return null;
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         return getSelectedSearches().length + getSelectedSearchResults().length + getSelectedBookmarks().length == 0
             && getSelectedEntries().length == 1 && getSelectedEntries()[0].getChildrenFilter() != null;
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/UpAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/UpAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/UpAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/UpAction.java Mon Jan  8 08:28:22 2007
@@ -37,12 +37,23 @@
 import org.eclipse.jface.viewers.TreeViewer;
 
 
+/**
+ * This class implements the Up Action.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class UpAction extends BrowserAction implements ModelModifier
 {
-
     protected TreeViewer viewer;
 
 
+    /**
+     * Creates a new instance of UpAction.
+     *
+     * @param viewer
+     *      the attached TreeViewer
+     */
     public UpAction( TreeViewer viewer )
     {
         super();
@@ -50,24 +61,36 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getText()
     {
         return "Up";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ImageDescriptor getImageDescriptor()
     {
         return BrowserUIPlugin.getDefault().getImageDescriptor( BrowserUIConstants.IMG_PARENT );
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public String getCommandId()
     {
         return "org.apache.directory.ldapstudio.browser.action.openSearchResult";
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         IEntry[] entries = getSelectedEntries();
@@ -111,10 +134,12 @@
             viewer.reveal( newSelection );
             viewer.setSelection( new StructuredSelection( newSelection ), true );
         }
-
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public boolean isEnabled()
     {
         IEntry[] entries = getSelectedEntries();
@@ -127,5 +152,4 @@
         return entries.length > 0 || searches.length > 0 || searchResults.length > 0 || bookmarks.length > 0
             || browserEntryPages.length > 0 || browserSearchResultPages.length > 0;
     }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/ValueEditorPreferencesAction.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/ValueEditorPreferencesAction.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/ValueEditorPreferencesAction.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/ValueEditorPreferencesAction.java Mon Jan  8 08:28:22 2007
@@ -28,9 +28,17 @@
 import org.eclipse.ui.dialogs.PreferencesUtil;
 
 
+/**
+ * This Action opens the Value Editors Preference Page.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class ValueEditorPreferencesAction extends Action
 {
-
+    /**
+     * Creates a new instance of ValueEditorPreferencesAction.
+     */
     public ValueEditorPreferencesAction()
     {
         super.setText( "Preferences..." );
@@ -39,6 +47,9 @@
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public void run()
     {
         Shell shell = Display.getCurrent().getActiveShell();
@@ -46,10 +57,4 @@
         PreferencesUtil.createPreferenceDialogOn( shell, pageId, new String[]
             { pageId }, null ).open();
     }
-
-
-    public void dispose()
-    {
-    }
-
 }

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/editors/searchresult/SearchResultEditorActionGroup.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/editors/searchresult/SearchResultEditorActionGroup.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/editors/searchresult/SearchResultEditorActionGroup.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/editors/searchresult/SearchResultEditorActionGroup.java Mon Jan  8 08:28:22 2007
@@ -250,8 +250,6 @@
 
         if ( this.searchResultEditor != null )
         {
-
-            this.showRawValuesAction.dispose();
             this.showRawValuesAction = null;
             this.showDNAction.dispose();
             this.showDNAction = null;
@@ -270,7 +268,6 @@
                 this.openEditorActions[i].dispose();
                 this.openEditorActions[i] = null;
             }
-            this.openValueEditorPreferencesAction.dispose();
             this.openValueEditorPreferencesAction = null;
 
             for ( Iterator it = this.searchResultEditorActionMap.keySet().iterator(); it.hasNext(); )

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetActionGroup.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetActionGroup.java?view=diff&rev=494113&r1=494112&r2=494113
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetActionGroup.java (original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetActionGroup.java Mon Jan  8 08:28:22 2007
@@ -135,7 +135,6 @@
             this.openSortDialogAction = null;
             this.showQuickFilterAction.dispose();
             this.showQuickFilterAction = null;
-            this.showRawValuesAction.dispose();
             this.showRawValuesAction = null;
 
             this.openDefaultEditorAction.dispose();
@@ -147,7 +146,6 @@
                 this.openEditorActions[i].dispose();
                 this.openEditorActions[i] = null;
             }
-            this.openValueEditorPreferencesAction.dispose();
             this.openValueEditorPreferencesAction = null;
 
             for ( Iterator it = this.entryEditorActionMap.keySet().iterator(); it.hasNext(); )



Mime
View raw message