Re: Deprecated HandlerManager and svn 2.1 branch question

2010-11-30 Thread Thomas Broyer


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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Deprecated HandlerManager and svn 2.1 branch question

2010-11-29 Thread Andy
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
from http://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.1/user/src/com/google/gwt/event/shared/HandlerManager.java

I made the jump from cvs to mercurial and haven't used svn
extensively, so maybe there's something about svn that I'm missing,
but I assumed that this would be the code for the 2.1 release.

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

I understand that HandlerManager is being replaced with SimpleEventBus
but there was some discussion in September that it's still OK within
Widgets. See here 
http://groups.google.com/group/google-web-toolkit/browse_frm/thread/4c96f539e1b863fe/a73f6eb3d9f7e2f6

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/tractionsoftware/gwt/user/client/Viewport.java

Thanks,
Andy

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Deprecated HandlerManager and svn 2.1 branch question

2010-11-29 Thread Jeff Larsen
HandlerManager has been replaced with EventBus. You could swap it out
with new SimpleEventBus();

On Nov 29, 10:09 am, 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

 I made the jump from cvs to mercurial and haven't used svn
 extensively, so maybe there's something about svn that I'm missing,
 but I assumed that this would be the code for the 2.1 release.

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

 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...

 Thanks,
 Andy

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.