Revision: 1508
          http://svn.sourceforge.net/spring-rich-c/?rev=1508&view=rev
Author:   mathiasbr
Date:     2006-10-15 02:00:19 -0700 (Sun, 15 Oct 2006)

Log Message:
-----------
fix for RCP-418,
field face returns null if no caption is defined since revision 1383

Revision Links:
--------------
    http://svn.sourceforge.net/spring-rich-c/?rev=1383&view=rev

Modified Paths:
--------------
    
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/form/builder/support/ShowCaptionInStatusBarInterceptorFactory.java

Modified: 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/form/builder/support/ShowCaptionInStatusBarInterceptorFactory.java
===================================================================
--- 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/form/builder/support/ShowCaptionInStatusBarInterceptorFactory.java
     2006-10-11 12:50:37 UTC (rev 1507)
+++ 
trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/form/builder/support/ShowCaptionInStatusBarInterceptorFactory.java
     2006-10-15 09:00:19 UTC (rev 1508)
@@ -47,16 +47,8 @@
             this.formModel = formModel;
         }
 
-        private String getCaption( String propertyName ) {
-            String caption = formModel.getFieldFace( propertyName 
).getCaption();
-
-            if( caption.contains( ".caption" ) ) {
-                // FIXME dirty hack, otherwise "propertyName.caption" is shown 
in the
-                // status bar
-                return null;
-            }
-
-            return caption;
+        String getCaption( String propertyName ) {
+            return formModel.getFieldFace( propertyName ).getCaption();
         }
 
         public void processComponent( final String propertyName, final 
JComponent component ) {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
spring-rich-c-cvs mailing list
spring-rich-c-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to