directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1687084 - /directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/BaseWidgetUtils.java
Date Tue, 23 Jun 2015 15:26:45 GMT
Author: elecharny
Date: Tue Jun 23 15:26:45 2015
New Revision: 1687084

URL: http://svn.apache.org/r1687084
Log:
Make it so that if the label is null, we don't inject it in the group

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

Modified: directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/BaseWidgetUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/BaseWidgetUtils.java?rev=1687084&r1=1687083&r2=1687084&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/BaseWidgetUtils.java
(original)
+++ directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/BaseWidgetUtils.java
Tue Jun 23 15:26:45 2015
@@ -65,7 +65,12 @@ public class BaseWidgetUtils
         GridData gridData = new GridData( GridData.FILL_BOTH );
         gridData.horizontalSpan = span;
         group.setLayoutData( gridData );
-        group.setText( label );
+        
+        if ( label != null )
+        {
+            group.setText( label );
+        }
+        
         group.setLayout( new GridLayout() );
         
         return group;



Mime
View raw message