directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1176405 - /directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/LdapServerAdapterExtensionsLabelProvider.java
Date Tue, 27 Sep 2011 14:42:22 GMT
Author: pamarcelot
Date: Tue Sep 27 14:42:22 2011
New Revision: 1176405

URL: http://svn.apache.org/viewvc?rev=1176405&view=rev
Log:
Better support for extension without version number.

Modified:
    directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/LdapServerAdapterExtensionsLabelProvider.java

Modified: directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/LdapServerAdapterExtensionsLabelProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/LdapServerAdapterExtensionsLabelProvider.java?rev=1176405&r1=1176404&r2=1176405&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/LdapServerAdapterExtensionsLabelProvider.java
(original)
+++ directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/wizards/LdapServerAdapterExtensionsLabelProvider.java
Tue Sep 27 14:42:22 2011
@@ -68,7 +68,17 @@ public class LdapServerAdapterExtensions
         {
             LdapServerAdapterExtension extension = ( LdapServerAdapterExtension ) element;
 
-            return extension.getName() + " " + extension.getVersion(); //$NON-NLS-1$
+            String version = extension.getVersion();
+
+            if ( ( version != null ) && ( !version.equals( "" ) ) ) //$NON-NLS-1$
+            {
+
+                return extension.getName() + " " + version; //$NON-NLS-1$
+            }
+            else
+            {
+                return extension.getName();
+            }
         }
 
         return super.getText( element );



Mime
View raw message