gitState_ = gitState;
vcsFileOpener_ = vcsFileOpener;
binder.bind(commands, this);
new WidgetHandlerRegistration(view.asWidget())
{
@Override
protected HandlerRegistration doRegister()
{
return gitState_.addVcsRefreshHandler(new VcsRefreshHandler()
{
@Override
public void onVcsRefresh(VcsRefreshEvent event)
{
if (event.getReason() == Reason.VcsOperation)
{
Scheduler.get().scheduleDeferred(new ScheduledCommand()
{
@Override
public void execute()
{
updateDiff(true);
initialized_ = true;
}
});
}
}
}, false);
}
};
new WidgetHandlerRegistration(view.asWidget())
{
@Override
protected HandlerRegistration doRegister()
{
return events.addHandler(FileChangeEvent.TYPE, new FileChangeHandler()