Merge "Display UiCommandDetail label as text"

This commit is contained in:
Shawn Pearce 2013-07-12 19:02:42 +00:00 committed by Gerrit Code Review
commit 21deb87e22

View File

@ -552,7 +552,8 @@ class PatchSetComplexDisclosurePanel extends ComplexDisclosurePanel
private void populateCommands(final PatchSetDetail detail) {
for (final UiCommandDetail cmd : detail.getCommands()) {
final Button b = new Button(cmd.label);
final Button b = new Button();
b.setText(cmd.label);
b.setEnabled(cmd.enabled);
b.setTitle(cmd.title);
b.addClickHandler(new ClickHandler() {