Tuesday, November 30, 2010

Re: Deprecated HandlerManager and svn 2.1 branch question

On 29 nov, 17:09, Andy <pula...@gmail.com> wrote:
> I'm updating my little gwt-traction library and noticed that it's
> giving compile warnings when I compile with the 2.1 jar downloaded
> fromhttp://code.google.com/webtoolkit/download.html
> I often build from source and looking at the 2.1 branch, it doesn't
> look deprecated:
> http://code.google.com/p/google-web-toolkit/source/browse/branches/2....

This is the pre-I/O branch.
GWT 2.1 is in releases/2.1 (and yes, it's misleading!)

> Question 1: What svn branch should I build to create the equivalent of
> the released jars?

GWT 2.1.0 is in tags/2.1.0

> I understand that HandlerManager is being replaced with SimpleEventBus
> but there was some discussion in September that it's still OK within
> Widgets. See herehttp://groups.google.com/group/google-web-toolkit/browse_frm/thread/4...
> Question 2: Should I just suppress warnings or actually change the
> HandlerManager in the Viewport code below?
> http://code.google.com/p/gwt-traction/source/browse/src/com/tractions...

If HandlerManager works, you can keep it (as it's still used inside
Widget, it's still fully functional). I'd however switch to a
SimpleEventBus and see what happens (FYI HandlerManager wraps a
SimpleEventBus and adds some behavior specific to handling DOM events,
and I think also some things for backwards compatibility)

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment