directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r827945 - in /directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors: ./ address/ administrativerole/ dn/ image/ objectclass/ password/
Date Wed, 21 Oct 2009 09:54:21 GMT
Author: pamarcelot
Date: Wed Oct 21 09:54:20 2009
New Revision: 827945

URL: http://svn.apache.org/viewvc?rev=827945&view=rev
Log:
Code formatting.

Modified:
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsActivator.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressDialog.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/administrativerole/AdministrativeRoleDialog.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/dn/DnValueEditor.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageDialog.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/objectclass/ObjectClassDialog.java
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordValueEditor.java

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsActivator.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsActivator.java?rev=827945&r1=827944&r2=827945&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsActivator.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsActivator.java
Wed Oct 21 09:54:20 2009
@@ -157,9 +157,8 @@
             {
                 // We can't use the PLUGIN_ID constant since loading the plugin.properties
file has failed,
                 // So we're using a default plugin id.
-                getLog().log(
-                    new Status( Status.ERROR, "org.apache.directory.studio.valueeditors",
Status.OK, //$NON-NLS-1$
-                        Messages.getString("ValueEditorsActivator.UnableGetPluginProperties"),
e ) ); //$NON-NLS-1$
+                getLog().log( new Status( Status.ERROR, "org.apache.directory.studio.valueeditors",
Status.OK, //$NON-NLS-1$
+                    Messages.getString( "ValueEditorsActivator.UnableGetPluginProperties"
), e ) ); //$NON-NLS-1$
             }
         }
 

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressDialog.java?rev=827945&r1=827944&r2=827945&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressDialog.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/address/AddressDialog.java
Wed Oct 21 09:54:20 2009
@@ -74,7 +74,7 @@
     protected void configureShell( Shell shell )
     {
         super.configureShell( shell );
-        shell.setText( Messages.getString("AddressDialog.AddressEditor") ); //$NON-NLS-1$
+        shell.setText( Messages.getString( "AddressDialog.AddressEditor" ) ); //$NON-NLS-1$
         shell.setImage( ValueEditorsActivator.getDefault().getImage( ValueEditorsConstants.IMG_ADDRESSEDITOR
) );
     }
 

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/administrativerole/AdministrativeRoleDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/administrativerole/AdministrativeRoleDialog.java?rev=827945&r1=827944&r2=827945&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/administrativerole/AdministrativeRoleDialog.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/administrativerole/AdministrativeRoleDialog.java
Wed Oct 21 09:54:20 2009
@@ -83,7 +83,7 @@
     protected void configureShell( Shell shell )
     {
         super.configureShell( shell );
-        shell.setText( Messages.getString("AdministrativeRoleDialog.AdministrativeRoleEditor")
); //$NON-NLS-1$
+        shell.setText( Messages.getString( "AdministrativeRoleDialog.AdministrativeRoleEditor"
) ); //$NON-NLS-1$
         shell.setImage( ValueEditorsActivator.getDefault()
             .getImage( ValueEditorsConstants.IMG_ADMINISTRATIVEROLEEDITOR ) );
     }

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/dn/DnValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/dn/DnValueEditor.java?rev=827945&r1=827944&r2=827945&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/dn/DnValueEditor.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/dn/DnValueEditor.java
Wed Oct 21 09:54:20 2009
@@ -63,7 +63,8 @@
             {
                 dn = null;
             }
-            DnDialog dialog = new DnDialog( shell, Messages.getString("DnValueEditor.DNEditor"),
null, wrapper.connection, dn ); //$NON-NLS-1$
+            DnDialog dialog = new DnDialog( shell,
+                Messages.getString( "DnValueEditor.DNEditor" ), null, wrapper.connection,
dn ); //$NON-NLS-1$
             if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
             {
                 setValue( dialog.getDn().getUpName() );

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=827945&r1=827944&r2=827945&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
Wed Oct 21 09:54:20 2009
@@ -421,8 +421,10 @@
                     currentImageLabel.setImage( currentImage );
                     currentImageTypeText.setText( getImageType( imageData.type ) );
                     currentImageSizeText.setText( getSizeString( currentImageRawData.length
) );
-                    currentImageWidthText.setText( NLS.bind( Messages.getString( "ImageDialog.Pixel"
), imageData.width ) ); //$NON-NLS-1$
-                    currentImageHeightText.setText( NLS.bind( Messages.getString( "ImageDialog.Pixel"
), imageData.height ) ); //$NON-NLS-1$
+                    currentImageWidthText.setText( NLS
+                        .bind( Messages.getString( "ImageDialog.Pixel" ), imageData.width
) ); //$NON-NLS-1$
+                    currentImageHeightText.setText( NLS.bind(
+                        Messages.getString( "ImageDialog.Pixel" ), imageData.height ) );
//$NON-NLS-1$
                 }
                 catch ( SWTException swte )
                 {

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java?rev=827945&r1=827944&r2=827945&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/image/ImageValueEditor.java
Wed Oct 21 09:54:20 2009
@@ -87,7 +87,7 @@
             }
             else
             {
-                return Messages.getString("ImageValueEditor.InvalidImageData"); //$NON-NLS-1$
+                return Messages.getString( "ImageValueEditor.InvalidImageData" ); //$NON-NLS-1$
             }
         }
     }

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/objectclass/ObjectClassDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/objectclass/ObjectClassDialog.java?rev=827945&r1=827944&r2=827945&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/objectclass/ObjectClassDialog.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/objectclass/ObjectClassDialog.java
Wed Oct 21 09:54:20 2009
@@ -86,7 +86,7 @@
     protected void configureShell( Shell shell )
     {
         super.configureShell( shell );
-        shell.setText( Messages.getString("ObjectClassDialog.ObjectClassEditor") ); //$NON-NLS-1$
+        shell.setText( Messages.getString( "ObjectClassDialog.ObjectClassEditor" ) ); //$NON-NLS-1$
         shell.setImage( ValueEditorsActivator.getDefault().getImage( ValueEditorsConstants.IMG_OCDEDITOR
) );
     }
 

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordValueEditor.java?rev=827945&r1=827944&r2=827945&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordValueEditor.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordValueEditor.java
Wed Oct 21 09:54:20 2009
@@ -95,16 +95,16 @@
                 String text;
                 if ( "".equals( password ) ) //$NON-NLS-1$
                 {
-                    text = Messages.getString("PasswordValueEditor.EmptyPassword"); //$NON-NLS-1$
+                    text = Messages.getString( "PasswordValueEditor.EmptyPassword" ); //$NON-NLS-1$
                 }
                 else if ( password.indexOf( '{' ) == 0 && password.indexOf( '}' )
> 0 )
                 {
                     String hashMethod = password.substring( password.indexOf( '{' ) + 1,
password.indexOf( '}' ) );
-                    text = hashMethod + Messages.getString("PasswordValueEditor.HashedPassword");
//$NON-NLS-1$
+                    text = hashMethod + Messages.getString( "PasswordValueEditor.HashedPassword"
); //$NON-NLS-1$
                 }
                 else
                 {
-                    text = Messages.getString("PasswordValueEditor.PlainTextPassword"); //$NON-NLS-1$
+                    text = Messages.getString( "PasswordValueEditor.PlainTextPassword" );
//$NON-NLS-1$
                 }
                 return text;
             }
@@ -135,7 +135,6 @@
         return new PasswordValueEditorRawValueWrapper( password, value.getAttribute().getEntry()
);
     }
 
-
     /**
      * The PasswordValueEditorRawValueWrapper is used to pass contextual 
      * information to the opened PasswordDialog.



Mime
View raw message