directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r596131 - in /directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs: ClearAction.java ModificationLogsViewActionGroup.java
Date Sun, 18 Nov 2007 21:02:37 GMT
Author: seelmann
Date: Sun Nov 18 13:02:36 2007
New Revision: 596131

URL: http://svn.apache.org/viewvc?rev=596131&view=rev
Log:
Fixed some warnings, added Javadoc.

Modified:
    directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ClearAction.java
    directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewActionGroup.java

Modified: directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ClearAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ClearAction.java?rev=596131&r1=596130&r2=596131&view=diff
==============================================================================
--- directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ClearAction.java
(original)
+++ directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ClearAction.java
Sun Nov 18 13:02:36 2007
@@ -27,6 +27,12 @@
 import org.eclipse.jface.resource.ImageDescriptor;
 
 
+/**
+ * Action to clear the log files.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class ClearAction extends BrowserAction
 {
 

Modified: directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewActionGroup.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewActionGroup.java?rev=596131&r1=596130&r2=596131&view=diff
==============================================================================
--- directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewActionGroup.java
(original)
+++ directory/studio/trunk/studio-ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewActionGroup.java
Sun Nov 18 13:02:36 2007
@@ -22,7 +22,6 @@
 
 
 import java.util.HashMap;
-import java.util.Iterator;
 import java.util.Map;
 
 import org.apache.directory.studio.ldapbrowser.common.actions.proxy.ActionHandlerManager;
@@ -86,20 +85,16 @@
 
 
     /**
-     * Disposes thes action group.
+     * Disposes this action group.
      */
     public void dispose()
     {
         if ( view != null )
         {
-            for ( Iterator it = modificationLogsViewActionMap.keySet().iterator(); it.hasNext();
)
+            for ( ModificationLogsViewActionProxy action : modificationLogsViewActionMap.values()
)
             {
-                String key = ( String ) it.next();
-                ModificationLogsViewActionProxy action = ( ModificationLogsViewActionProxy
) modificationLogsViewActionMap
-                    .get( key );
                 action.dispose();
                 action = null;
-                it.remove();
             }
             modificationLogsViewActionMap.clear();
             modificationLogsViewActionMap = null;
@@ -140,9 +135,8 @@
      */
     public void setInput( ModificationLogsViewInput input )
     {
-        for ( Iterator it = modificationLogsViewActionMap.values().iterator(); it.hasNext();
)
+        for ( ModificationLogsViewActionProxy action : modificationLogsViewActionMap.values()
)
         {
-            ModificationLogsViewActionProxy action = ( ModificationLogsViewActionProxy )
it.next();
             action.inputChanged( input );
         }
     }



Mime
View raw message