directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1687444 - /directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/StringValueDecorator.java
Date Thu, 25 Jun 2015 08:45:45 GMT
Author: elecharny
Date: Thu Jun 25 08:45:45 2015
New Revision: 1687444

URL: http://svn.apache.org/r1687444
Log:
Fixed the getText() method

Modified:
    directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/StringValueDecorator.java

Modified: directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/StringValueDecorator.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/StringValueDecorator.java?rev=1687444&r1=1687443&r2=1687444&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/StringValueDecorator.java
(original)
+++ directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/wrappers/StringValueDecorator.java
Thu Jun 25 08:45:45 2015
@@ -42,14 +42,14 @@ public class StringValueDecorator extend
     
 
     /**
-     * Construct the label for an String.
+     * Construct the label for a String.
      * 
      */
     public String getText( Object element )
     {
-        if ( element instanceof String )
+        if ( element instanceof StringValueWrapper )
         {
-            return ( String ) element;
+            return ( ( StringValueWrapper ) element ).getValue();
         }
 
         return super.getText( element );



Mime
View raw message