cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r451456 - /incubator/cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/AboutDialog.java
Date Fri, 29 Sep 2006 21:32:58 GMT
Author: aadamchik
Date: Fri Sep 29 14:32:57 2006
New Revision: 451456

URL: http://svn.apache.org/viewvc?view=rev&rev=451456
Log:
reading version and date properties from the main Cayenne jar.

Modified:
    incubator/cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/AboutDialog.java

Modified: incubator/cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/AboutDialog.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/AboutDialog.java?view=diff&rev=451456&r1=451455&r2=451456
==============================================================================
--- incubator/cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/AboutDialog.java
(original)
+++ incubator/cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/AboutDialog.java
Fri Sep 29 14:32:57 2006
@@ -47,6 +47,8 @@
 import org.apache.cayenne.modeler.util.CayenneDialog;
 import org.apache.cayenne.modeler.util.CayenneWidgetFactory;
 import org.apache.cayenne.modeler.util.ModelerUtil;
+import org.apache.cayenne.util.LocalizedStringsHandler;
+import org.apache.cayenne.util.Util;
 import org.scopemvc.util.UIStrings;
 
 /** 
@@ -81,13 +83,13 @@
             buffer.append("</font>");
             buffer.append("<font size='-2' face='Arial,Helvetica'>");
 
-            String version = UIStrings.get("cayenne.version");
+            String version = LocalizedStringsHandler.getString("cayenne.version");
             if (version != null) {
                 buffer.append("<br>Version: ").append(version);
             }
 
-            String buildDate = UIStrings.get("cayenne.build.date");
-            if (buildDate != null) {
+            String buildDate = LocalizedStringsHandler.getString("cayenne.build.date");
+            if (!Util.isEmptyString(buildDate)) {
                 buffer.append(" (").append(buildDate).append(")");
             }
 



Mime
View raw message