From 05bf5aa1df11a52abfadea67f5abde934888c9d6 Mon Sep 17 00:00:00 2001 From: "jat@google.com" Date: Fri, 22 Apr 2011 21:49:48 +0000 Subject: [PATCH] Move Date-related classes to shared, so they can be used by server-side i18n code. git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10061 8db76d5a-ed1c-0410-87a9-c151d255dfc7 --- tools/api-checker/config/gwt22_23userApi.conf | 3 + user/src/com/google/gwt/i18n/I18N.gwt.xml | 4 +- .../gwt/i18n/client/CustomDateTimeFormat.java | 8 +- .../gwt/i18n/client/DateTimeFormat.java | 1496 +---------- .../gwt/i18n/client/DateTimeFormatInfo.java | 331 +-- .../client/DefaultDateTimeFormatInfo.java | 326 +-- .../google/gwt/i18n/client/Localizable.java | 89 +- .../com/google/gwt/i18n/client/TimeZone.java | 77 +- .../rebind/CustomDateTimeFormatGenerator.java | 39 +- .../gwt/i18n/shared/CustomDateTimeFormat.java | 43 + .../gwt/i18n/shared/DateTimeFormat.java | 2194 +++++++++++++++++ .../gwt/i18n/shared/DateTimeFormatInfo.java | 348 +++ .../shared/DefaultDateTimeFormatInfo.java | 339 +++ .../google/gwt/i18n/shared/Localizable.java | 105 + .../com/google/gwt/i18n/shared/TimeZone.java | 108 + .../{client => shared}/impl/DateRecord.java | 3 +- .../text/client/DateTimeFormatRenderer.java | 9 +- .../google/gwt/user/client/ui/DateLabel.java | 6 +- .../i18n/client/DateTimeFormat_de_Test.java | 1 + .../i18n/client/DateTimeFormat_en_Test.java | 5 +- .../i18n/server/MessageInterfaceTestBase.java | 5 +- .../DateTimeFormatTestBase.java | 0 .../client/DateTimeFormatRendererTest.java | 4 +- .../gwt/uibinder/test/UiJavaResources.java | 41 +- ...imeFormatTestBase_MyMessages_de.properties | 0 ...imeFormatTestBase_MyMessages_en.properties | 0 26 files changed, 3276 insertions(+), 2308 deletions(-) create mode 100644 user/src/com/google/gwt/i18n/shared/CustomDateTimeFormat.java create mode 100644 user/src/com/google/gwt/i18n/shared/DateTimeFormat.java create mode 100644 user/src/com/google/gwt/i18n/shared/DateTimeFormatInfo.java create mode 100644 user/src/com/google/gwt/i18n/shared/DefaultDateTimeFormatInfo.java create mode 100644 user/src/com/google/gwt/i18n/shared/Localizable.java create mode 100644 user/src/com/google/gwt/i18n/shared/TimeZone.java rename user/src/com/google/gwt/i18n/{client => shared}/impl/DateRecord.java (99%) rename user/test/com/google/gwt/i18n/{client => shared}/DateTimeFormatTestBase.java (100%) rename user/test_i18n_bar/com/google/gwt/i18n/{client => shared}/DateTimeFormatTestBase_MyMessages_de.properties (100%) rename user/test_i18n_bar/com/google/gwt/i18n/{client => shared}/DateTimeFormatTestBase_MyMessages_en.properties (100%) diff --git a/tools/api-checker/config/gwt22_23userApi.conf b/tools/api-checker/config/gwt22_23userApi.conf index d97d2770d92..2055de362bb 100644 --- a/tools/api-checker/config/gwt22_23userApi.conf +++ b/tools/api-checker/config/gwt22_23userApi.conf @@ -158,3 +158,6 @@ com.google.gwt.autobean.shared MISSING # Adding protected Video(Element) that conflicts with existing (now deprecated) public Video(String) com.google.gwt.media.client.Video::Video(Ljava/lang/String;) OVERLOADED_METHOD_CALL +# move i18n classes to shared +com.google.gwt.i18n.client.DateTimeFormat::format(Ljava/util/Date;Lcom/google/gwt/i18n/client/TimeZone;) OVERRIDABLE_METHOD_ARGUMENT_TYPE_CHANGE +com.google.gwt.i18n.client.impl.DateRecord MISSING diff --git a/user/src/com/google/gwt/i18n/I18N.gwt.xml b/user/src/com/google/gwt/i18n/I18N.gwt.xml index a22c58f6d8a..6473a3403b3 100644 --- a/user/src/com/google/gwt/i18n/I18N.gwt.xml +++ b/user/src/com/google/gwt/i18n/I18N.gwt.xml @@ -75,7 +75,7 @@ generator="com.google.gwt.i18n.linker.LocalePropertyProviderGenerator"/> - + @@ -84,7 +84,7 @@ - +