events.addHandler(SessionInitEvent.TYPE, new SessionInitHandler()
{
@Override
public void onSessionInit(SessionInitEvent sie)
{
FindInFilesState state =
session.getSessionInfo().getFindInFilesState();
if (state.isTabVisible())
shim.initialize(state);
}
});
GWT.<Binder>create(Binder.class).bind(commands, shim);