directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r753359 - in /directory/studio/trunk: aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/valueeditors/ connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/ ldapbrowser-common/src/main/java/org/a...
Date Fri, 13 Mar 2009 19:22:05 GMT
Author: seelmann
Date: Fri Mar 13 19:22:03 2009
New Revision: 753359

URL: http://svn.apache.org/viewvc?rev=753359&view=rev
Log:
Cleaned some System.out and commented code

Modified:
    directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/valueeditors/SubtreeSpecificationDialog.java
    directory/studio/trunk/connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/StudioConnectionJob.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/filtereditor/FilterAutoEditStrategy.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidgetAutoEditStrategyAdapter.java
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/AbstractEclipseJob.java
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/StudioControl.java
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/Schema.java
    directory/studio/trunk/ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/parser/LdifScanner.java

Modified: directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/valueeditors/SubtreeSpecificationDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/valueeditors/SubtreeSpecificationDialog.java?rev=753359&r1=753358&r2=753359&view=diff
==============================================================================
--- directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/valueeditors/SubtreeSpecificationDialog.java
(original)
+++ directory/studio/trunk/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/valueeditors/SubtreeSpecificationDialog.java
Fri Mar 13 19:22:03 2009
@@ -515,11 +515,6 @@
         {
             getButton( IDialogConstants.OK_ID ).setEnabled( valid );
         }
-
-        //System.out.println("1:"  + ss);
-        //StringBuffer sb = new StringBuffer();
-        //subtreeSpecification.printToBuffer( sb );
-        //System.out.println("2:"  + sb.toString());
     }
 
 

Modified: directory/studio/trunk/connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/StudioConnectionJob.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/StudioConnectionJob.java?rev=753359&r1=753358&r2=753359&view=diff
==============================================================================
--- directory/studio/trunk/connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/StudioConnectionJob.java
(original)
+++ directory/studio/trunk/connection-core/src/main/java/org/apache/directory/studio/connection/core/jobs/StudioConnectionJob.java
Fri Mar 13 19:22:03 2009
@@ -138,7 +138,6 @@
         // error handling
         if ( monitor.isCanceled() )
         {
-            // System.out.println("Job: CANCEL+CANCEL");
             externalResult = Status.CANCEL_STATUS;
             return Status.CANCEL_STATUS;
         }
@@ -147,18 +146,15 @@
             externalResult = monitor.getErrorStatus( runnable.getErrorMessage() );
             if ( externalProgressMonitor == null )
             {
-                // System.out.println("Job: ERROR+ERROR");
                 return externalResult;
             }
             else
             {
-                // System.out.println("Job: ERROR+OK");
                 return Status.OK_STATUS;
             }
         }
         else
         {
-            // System.out.println("Job: OK+OK");
             externalResult = Status.OK_STATUS;
             return Status.OK_STATUS;
         }

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/filtereditor/FilterAutoEditStrategy.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/filtereditor/FilterAutoEditStrategy.java?rev=753359&r1=753358&r2=753359&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/filtereditor/FilterAutoEditStrategy.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/filtereditor/FilterAutoEditStrategy.java
Fri Mar 13 19:22:03 2009
@@ -203,8 +203,6 @@
                     && ( filter.getFilterComponent() instanceof LdapAndFilterComponent
                         || filter.getFilterComponent() instanceof LdapOrFilterComponent ||
filter.getFilterComponent() instanceof LdapNotFilterComponent );
             }
-            
-            //System.out.println("isSurroundNew="+isSurroundNew+", isSurroundNested="+isSurroundNested+",
isSurroundAfterOtherFilter="+isSurroundAfterOtherFilter+", isSurroundBeforeOtherFilter="+isSurroundBeforeOtherFilter);
 
             // add opening parenthesis '('
             if ( isSurroundNew || isSurroundNested || isSurroundAfterOtherFilter || isSurroundBeforeOtherFilter
)
@@ -243,9 +241,6 @@
                 aep.text = INDENT_STRING;
             }
         }
-        
-        //System.out.println( "aep='"+aep.text+"',"+aep.offset+","+aep.length+","+aep.caretOffset+","+aep.shiftsCaret+";
balanced="+balanced+"; filter='"+filter.toString()+"'" );
-
     }
 
     /**

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidgetAutoEditStrategyAdapter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidgetAutoEditStrategyAdapter.java?rev=753359&r1=753358&r2=753359&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidgetAutoEditStrategyAdapter.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidgetAutoEditStrategyAdapter.java
Fri Mar 13 19:22:03 2009
@@ -100,7 +100,6 @@
      */
     public void prepareComboCustomization( VerifyEvent e )
     {
-        //System.out.println(e);
         if ( !inApplyComboCustomization )
         {
             String oldText = combo.getText();
@@ -124,7 +123,6 @@
      */
     public void applyComboCustomization( ModifyEvent e )
     {
-        //System.out.println(e);
         if ( !inApplyComboCustomization && !verifyEvents.isEmpty() )
         {
             String oldText = oldTexts.remove( 0 );

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/AbstractEclipseJob.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/AbstractEclipseJob.java?rev=753359&r1=753358&r2=753359&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/AbstractEclipseJob.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/AbstractEclipseJob.java
Fri Mar 13 19:22:03 2009
@@ -114,7 +114,6 @@
         // error handling
         if ( monitor.isCanceled() )
         {
-            // System.out.println("Job: CANCEL+CANCEL");
             externalResult = Status.CANCEL_STATUS;
             return Status.CANCEL_STATUS;
         }
@@ -123,18 +122,15 @@
             externalResult = monitor.getErrorStatus( getErrorMessage() );
             if ( externalProgressMonitor == null )
             {
-                // System.out.println("Job: ERROR+ERROR");
                 return externalResult;
             }
             else
             {
-                // System.out.println("Job: ERROR+OK");
                 return Status.OK_STATUS;
             }
         }
         else
         {
-            // System.out.println("Job: OK+OK");
             externalResult = Status.OK_STATUS;
             return Status.OK_STATUS;
         }
@@ -190,39 +186,15 @@
                     for ( int k = 0; k < myLockedObjectsIdentifiers.length; k++ )
                     {
                         String my = myLockedObjectsIdentifiers[k];
-
-                        System.out.print( "other:" + other + ", my: " + my );
-
                         if ( other.startsWith( my ) || my.startsWith( other ) )
                         {
-                            System.out.println( ", shouldSchedule() = " + false );
                             return false;
                         }
-                        else
-                        {
-                            System.out.println();
-                        }
-
                     }
                 }
-
             }
         }
         return super.shouldSchedule();
-
-        // // Doesn't work
-        // Job[] jobs = getJobManager().find(null);
-        // for (int i = 0; i < jobs.length; i++) {
-        // Job job = jobs[i];
-        // if(job instanceof AbstractEclipseJob) {
-        // System.out.println("shouldSchedule() = " + false);
-        // return false;
-        // }
-        // }
-        // System.out.println("shouldSchedule() = " + true);
-        // return true;
-
-        // return super.shouldSchedule();
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/StudioControl.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/StudioControl.java?rev=753359&r1=753358&r2=753359&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/StudioControl.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/StudioControl.java
Fri Mar 13 19:22:03 2009
@@ -161,9 +161,6 @@
         s = s.substring( line.getRawControlSpec().length(), s.length() );
         s = s.substring( line.getRawControlType().length(), s.length() );
         s = s.substring( 0, s.length() - line.getRawNewLine().length() );
-
-        //System.out.println( s );
-
         return s;
     }
 

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/Schema.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/Schema.java?rev=753359&r1=753358&r2=753359&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/Schema.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/Schema.java
Fri Mar 13 19:22:03 2009
@@ -190,6 +190,7 @@
         }
         catch ( Exception e )
         {
+            // TODO: exception handling
             System.out.println( "Schema#loadFromLdif: " + e.toString() );
         }
     }
@@ -208,6 +209,7 @@
         }
         catch ( Exception e )
         {
+            // TODO: exception handling
             System.out.println( "Schema#loadFromRecord: " + e.toString() );
         }
     }
@@ -226,6 +228,7 @@
         }
         catch ( Exception e )
         {
+            // TODO: exception handling
             System.out.println( "Schema#saveToLdif: " + e.toString() );
         }
     }
@@ -305,6 +308,7 @@
             }
             catch ( Exception e )
             {
+                // TODO: exception handling
                 System.out.println( "Error reading schema: " + attributeName + " = " + value
);
                 System.out.println( e.getMessage() );
             }

Modified: directory/studio/trunk/ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/parser/LdifScanner.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/parser/LdifScanner.java?rev=753359&r1=753358&r2=753359&view=diff
==============================================================================
--- directory/studio/trunk/ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/parser/LdifScanner.java
(original)
+++ directory/studio/trunk/ldif-parser/src/main/java/org/apache/directory/studio/ldifparser/parser/LdifScanner.java
Fri Mar 13 19:22:03 2009
@@ -547,10 +547,6 @@
 
     private void flushBuffer()
     {
-
-        // System.out.println("flushBuffer():
-        // before("+this.pos+","+this.ldifBufferOffset+")");
-
         if ( this.ldifBufferOffset < this.pos && this.ldifBuffer.length() >
0 )
         {
             int delta = Math.min( pos - this.ldifBufferOffset, this.ldifBuffer.length() );
@@ -558,9 +554,6 @@
             this.ldifBuffer.delete( 0, delta );
             this.ldifBufferOffset += delta;
         }
-
-        // System.out.println("flushBuffer():
-        // after("+this.pos+","+this.ldifBufferOffset+")");
     }
 
 



Mime
View raw message