Skip to content

Commit

Permalink
Move Date-related classes to shared, so they can be used by
Browse files Browse the repository at this point in the history
server-side i18n code.


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10061 8db76d5a-ed1c-0410-87a9-c151d255dfc7
  • Loading branch information
[email protected] committed Apr 22, 2011
1 parent 9f3cb7b commit 05bf5aa
Show file tree
Hide file tree
Showing 26 changed files with 3,276 additions and 2,308 deletions.
3 changes: 3 additions & 0 deletions tools/api-checker/config/gwt22_23userApi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions user/src/com/google/gwt/i18n/I18N.gwt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
generator="com.google.gwt.i18n.linker.LocalePropertyProviderGenerator"/>

<generate-with class="com.google.gwt.i18n.rebind.LocalizableGenerator">
<when-type-assignable class="com.google.gwt.i18n.client.Localizable" />
<when-type-assignable class="com.google.gwt.i18n.shared.Localizable" />
</generate-with>
<generate-with class="com.google.gwt.i18n.rebind.LocaleInfoGenerator">
<when-type-is class="com.google.gwt.i18n.client.impl.LocaleInfoImpl" />
Expand All @@ -84,7 +84,7 @@
<when-type-is class="com.google.gwt.i18n.client.CurrencyList" />
</generate-with>
<generate-with class="com.google.gwt.i18n.rebind.CustomDateTimeFormatGenerator">
<when-type-assignable class="com.google.gwt.i18n.client.CustomDateTimeFormat" />
<when-type-assignable class="com.google.gwt.i18n.shared.CustomDateTimeFormat" />
</generate-with>

<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,21 @@
* Create a custom localized date/time format at compile time. All methods on
* subtypes of this interface must take no parameters and return DateTimeFormat
* (which will be an initialized instance).
*
* @deprecated use {@link com.google.gwt.i18n.shared.CustomDateTimeFormat} instead
*/
public interface CustomDateTimeFormat {
@Deprecated
public interface CustomDateTimeFormat extends com.google.gwt.i18n.shared.CustomDateTimeFormat {

/**
* Annotation containing the pattern skeleton.
*
* <p>The order of pattern characters and any literals don't matter, just
* which pattern characters are present and their counts.
*
* @deprecated use {@link com.google.gwt.i18n.shared.CustomDateTimeFormat.Pattern} instead
*/
@Deprecated
public @interface Pattern {

/**
Expand Down
Loading

0 comments on commit 05bf5aa

Please sign in to comment.