See updated patch set.

http://gwt-code-reviews.appspot.com/1109801/diff/1/2
File
user/src/com/google/gwt/uibinder/elementparsers/HasAlignmentParser.java
(right):

http://gwt-code-reviews.appspot.com/1109801/diff/1/2#newcode2
user/src/com/google/gwt/uibinder/elementparsers/HasAlignmentParser.java:2:
* Copyright 2008 Google Inc.
Updated.
On 2010/11/15 21:46:14, zundel wrote:
fyi dates in new files need to be updated

http://gwt-code-reviews.appspot.com/1109801/diff/1/2#newcode24
user/src/com/google/gwt/uibinder/elementparsers/HasAlignmentParser.java:24:
* Parses widgets that inherit from {...@link
com.google.gwt.user.client.ui.HasHorizontalAlignment}.
Fixed.
On 2010/11/15 22:08:38, rjrjr wrote:
wrong class linked

http://gwt-code-reviews.appspot.com/1109801/diff/1/3
File
user/src/com/google/gwt/uibinder/elementparsers/HasHorizontalAlignmentParser.java
(right):

http://gwt-code-reviews.appspot.com/1109801/diff/1/3#newcode32
user/src/com/google/gwt/uibinder/elementparsers/HasHorizontalAlignmentParser.java:32:
writer.getDesignTime().handleUIObject(writer, elem, fieldName);
Removed.
On 2010/11/15 22:08:38, rjrjr wrote:
why?

http://gwt-code-reviews.appspot.com/1109801/diff/1/4
File
user/src/com/google/gwt/uibinder/elementparsers/HasVerticalAlignmentParser.java
(right):

http://gwt-code-reviews.appspot.com/1109801/diff/1/4#newcode32
user/src/com/google/gwt/uibinder/elementparsers/HasVerticalAlignmentParser.java:32:
writer.getDesignTime().handleUIObject(writer, elem, fieldName);
Removed.
On 2010/11/15 22:08:38, rjrjr wrote:
ditto

http://gwt-code-reviews.appspot.com/1109801/diff/1/5
File user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
(right):

http://gwt-code-reviews.appspot.com/1109801/diff/1/5#newcode1000
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1000:
addWidgetParser("HasAlignment");
Inlined the HasHorizontalAlignment and HasVerticalAlignment parsers.
On 2010/11/15 22:08:38, rjrjr wrote:
It won't fire for widgets that implement only HasHorizontalAlignment
or
HasVerticalAlignment, which is not a small set. Is that okay?

If so, I'd inline the other two parsers into HasAlignment, or someone
will
wonder why the more specific ones don't always fire. Should also
document in
HasAlignmentParser why it's necessary (link to the issue), since it's
redundant
with BeanParser.

http://gwt-code-reviews.appspot.com/1109801/diff/1/6
File
user/test/com/google/gwt/uibinder/elementparsers/HasAlignmentParserTest.java
(right):

http://gwt-code-reviews.appspot.com/1109801/diff/1/6#newcode2
user/test/com/google/gwt/uibinder/elementparsers/HasAlignmentParserTest.java:2:
* Copyright 2009 Google Inc.
Updated.
On 2010/11/15 22:08:38, rjrjr wrote:
2010

http://gwt-code-reviews.appspot.com/1109801/diff/1/6#newcode38
user/test/com/google/gwt/uibinder/elementparsers/HasAlignmentParserTest.java:38:
}
Added a test case.
On 2010/11/15 22:08:38, rjrjr wrote:
Should test success case as well. And should test that the two
attributes are
optional.

http://gwt-code-reviews.appspot.com/1109801/diff/1/7
File user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
(right):

http://gwt-code-reviews.appspot.com/1109801/diff/1/7#newcode579
user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java:579:
"class=\"gwt-StackPanelItem");
Yup.
On 2010/11/15 22:08:38, rjrjr wrote:
This fails w/o the new parser?

http://gwt-code-reviews.appspot.com/1109801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to