Ok, I figured that out.
1. I misspelled 'onBrowseEvent' - it must be 'onBrowserEvent'.
2. I did not call super.onBrowserEvent() in onBrowserEvent.
The code that works is:
<code>
Tree tree = new Tree(){
public void onBrowserEvent(Event e) { {
sinkEvents(Event.ONDBLCLICK);
}
super.onBrowserEvent(e);
if(DOM.eventGetType(e) == Event.ONDBLCLICK) {
GWT.log("Double clicked.", null);
}
}
};
</code>
Hope this will help to someone new to GWT like me.