directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1689864 - /directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/widgets/EntryWidget.java
Date Wed, 08 Jul 2015 12:51:11 GMT
Author: elecharny
Date: Wed Jul  8 12:51:10 2015
New Revision: 1689864

URL: http://svn.apache.org/r1689864
Log:
Trivial formating

Modified:
    directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/widgets/EntryWidget.java

Modified: directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/widgets/EntryWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/widgets/EntryWidget.java?rev=1689864&r1=1689863&r2=1689864&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/widgets/EntryWidget.java
(original)
+++ directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/widgets/EntryWidget.java
Wed Jul  8 12:51:10 2015
@@ -89,6 +89,7 @@ public class EntryWidget extends Abstrac
             notifyListeners();
         }
     };
+    
     private ModifyListener dnComboListener = new ModifyListener()
     {
         public void modifyText( ModifyEvent e )
@@ -106,6 +107,7 @@ public class EntryWidget extends Abstrac
             notifyListeners();
         }
     };
+    
     private SelectionAdapter entryBrowseButtonListener = new SelectionAdapter()
     {
         public void widgetSelected( SelectionEvent e )
@@ -117,9 +119,11 @@ public class EntryWidget extends Abstrac
 
                 // get initial entry
                 IEntry entry = rootEntry;
-                if ( dn != null && dn.size() > 0 )
+                
+                if ( ( dn != null ) && ( dn.size() > 0 ) )
                 {
                     entry = browserConnection.getEntryFromCache( dn );
+                    
                     if ( entry == null )
                     {
                         ReadEntryRunnable runnable = new ReadEntryRunnable( browserConnection,
dn );
@@ -224,6 +228,7 @@ public class EntryWidget extends Abstrac
         {
             composite = new Composite( parent, SWT.NONE );
         }
+        
         GridLayout compositeGridLayout = new GridLayout( getNumberOfColumnsForComposite(),
false );
         compositeGridLayout.marginHeight = compositeGridLayout.marginWidth = 0;
         compositeGridLayout.verticalSpacing = 0;
@@ -244,10 +249,12 @@ public class EntryWidget extends Abstrac
 
         // Dn combo
         dnCombo = BaseWidgetUtils.createCombo( composite, new String[0], -1, 1 );
+        
         if ( toolkit != null )
         {
             toolkit.adapt( dnCombo );
         }
+        
         GridData gd = new GridData( GridData.FILL_HORIZONTAL );
         gd.horizontalSpan = 1;
         gd.widthHint = 50;
@@ -268,7 +275,6 @@ public class EntryWidget extends Abstrac
         {
             entryBrowseButton = BaseWidgetUtils.createButton( composite,
                 Messages.getString( "EntryWidget.BrowseButton" ), 1 ); //$NON-NLS-1$
-
         }
 
         dnChanged();



Mime
View raw message