directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r721342 - in /directory/studio/trunk: ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/ ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ schemaeditor/src/main/java/or...
Date Fri, 28 Nov 2008 05:20:09 GMT
Author: felixk
Date: Thu Nov 27 21:20:08 2008
New Revision: 721342

URL: http://svn.apache.org/viewvc?rev=721342&view=rev
Log:
Use Object[] instead of int[] to bind parameters to messages.

Thanks for Stefan spotting this.

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/BatchOperationApplyOnWizardPage.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteProjectAction.java
    directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteSchemaElementAction.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageDialog.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java?rev=721342&r1=721341&r2=721342&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/dialogs/properties/EntryPropertyPage.java
Thu Nov 27 21:20:08 2008
@@ -371,7 +371,7 @@
             else
             {
                 childrenText.setText( ( entry.hasMoreChildren() ? NLS.bind( Messages
-                    .getString( "EntryPropertyPage.ChildrenFetched" ), new int[] { entry.getChildrenCount()
} ) //$NON-NLS-1$
+                    .getString( "EntryPropertyPage.ChildrenFetched" ), new Object[] { entry.getChildrenCount()
} ) //$NON-NLS-1$
                     : Integer.toString( entry.getChildrenCount() ) ) );
             }
             attributesText.setText( "" + attCount ); //$NON-NLS-1$

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/BatchOperationApplyOnWizardPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/BatchOperationApplyOnWizardPage.java?rev=721342&r1=721341&r2=721342&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/BatchOperationApplyOnWizardPage.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/BatchOperationApplyOnWizardPage.java
Thu Nov 27 21:20:08 2008
@@ -277,7 +277,7 @@
                 textList
                     .add( NLS
                         .bind(
-                            Messages.getString( "BatchOperationApplyOnWizardPage.DNsOfSelectedAttributes"
), new int[] { internalDnSet.size() } ) ); //$NON-NLS-1$
+                            Messages.getString( "BatchOperationApplyOnWizardPage.DNsOfSelectedAttributes"
), new Object[] { internalDnSet.size() } ) ); //$NON-NLS-1$
             }
         }
         if ( searches.length == 1 && searches[0].getSearchResults() != null )
@@ -315,7 +315,7 @@
             textList
                 .add( NLS
                     .bind(
-                        Messages.getString( "BatchOperationApplyOnWizardPage.SelectedEntries"
), new int[] { internalDnSet.size() } ) ); //$NON-NLS-1$
+                        Messages.getString( "BatchOperationApplyOnWizardPage.SelectedEntries"
), new Object[] { internalDnSet.size() } ) ); //$NON-NLS-1$
         }
 
         this.initCurrentSelectionTexts = textList.toArray( new String[textList.size()] );

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteProjectAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteProjectAction.java?rev=721342&r1=721341&r2=721342&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteProjectAction.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteProjectAction.java
Thu Nov 27 21:20:08 2008
@@ -119,7 +119,7 @@
             else
             {
                 messageBox.setMessage( NLS.bind(
-                    Messages.getString( "DeleteProjectAction.SureToDeleteProjects" ), new
int[] { count } ) ); //$NON-NLS-1$
+                    Messages.getString( "DeleteProjectAction.SureToDeleteProjects" ), new
Object[] { count } ) ); //$NON-NLS-1$
             }
             if ( messageBox.open() == SWT.YES )
             {

Modified: directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteSchemaElementAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteSchemaElementAction.java?rev=721342&r1=721341&r2=721342&view=diff
==============================================================================
--- directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteSchemaElementAction.java
(original)
+++ directory/studio/trunk/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/controller/actions/DeleteSchemaElementAction.java
Thu Nov 27 21:20:08 2008
@@ -148,7 +148,7 @@
             else
             {
                 messageBox.setMessage( NLS.bind(
-                    Messages.getString( "DeleteSchemaElementAction.SureToDeleteItems" ),
new int[] { count } ) ); //$NON-NLS-1$
+                    Messages.getString( "DeleteSchemaElementAction.SureToDeleteItems" ),
new Object[] { count } ) ); //$NON-NLS-1$
             }
             if ( messageBox.open() == SWT.YES )
             {

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageDialog.java?rev=721342&r1=721341&r2=721342&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageDialog.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageDialog.java
Thu Nov 27 21:20:08 2008
@@ -728,7 +728,7 @@
             return "NULL"; //$NON-NLS-1$
         }
 
-        String text = NLS.bind( Messages.getString( "ImageDialog.Image" ), new int[] { imageRawData.length
} ); //$NON-NLS-1$
+        String text = NLS.bind( Messages.getString( "ImageDialog.Image" ), new Object[] {
imageRawData.length } ); //$NON-NLS-1$
         try
         {
             ByteArrayInputStream bais = new ByteArrayInputStream( imageRawData );
@@ -741,11 +741,11 @@
             text = typePrefix
                 + NLS
                     .bind(
-                        Messages.getString( "ImageDialog.Pixel" ), new int[] { imageData.width,
imageData.height, imageRawData.length } ); //$NON-NLS-2$
+                        Messages.getString( "ImageDialog.Pixel" ), new Object[] { imageData.width,
imageData.height, imageRawData.length } ); //$NON-NLS-2$
         }
         catch ( SWTException swte )
         {
-            text = NLS.bind( Messages.getString( "ImageDialog.InvalidImage" ), new int[]
{ imageRawData.length } ); //$NON-NLS-1$
+            text = NLS.bind( Messages.getString( "ImageDialog.InvalidImage" ), new Object[]
{ imageRawData.length } ); //$NON-NLS-1$
         }
         return text;
     }



Mime
View raw message