topToolbar_.addLeftWidget(commands.vcsResolve().createToolbarButton());
topToolbar_.addLeftSeparator();
topToolbar_.addLeftWidget(commands.vcsCommit().createToolbarButton());
topToolbar_.addRightWidget(new ToolbarButton(
"Refresh", commands.vcsRefresh().getImageResource(),
new ClickHandler() {
@Override
public void onClick(ClickEvent event)
{
changelist_.showProgress();
commands_.vcsRefresh().execute();
}
}));
commands.vcsPull().setButtonLabel("Update");
commands.vcsPull().setMenuLabel("Update");
topToolbar_.addRightWidget(commands.vcsPull().createToolbarButton());
diffToolbar_.addStyleName(RES.styles().toolbar());
diffToolbar_.addStyleName(RES.styles().diffToolbar());
diffToolbar_.addLeftSeparator();
discardAllButton_ = diffToolbar_.addLeftWidget(new ToolbarButton(
"Discard All", RES.discard(), (ClickHandler) null));
listBoxAdapter_ = new ListBoxAdapter(contextLines_);
new WidgetHandlerRegistration(this)