public LocalRepositoriesWidget() {
    RStudioGinjector.INSTANCE.injectMembers(this);

    VerticalPanel panel = new VerticalPanel();
    panel.add(new LabelWithHelp("Local repositories:", "packrat_local_repos"));

    HorizontalPanel hp = new HorizontalPanel();
    listBox_ = new ListBox(true);
    listBox_.addStyleName(RES.styles().listBox());
    listBox_.getElement().<SelectElement>cast().setSize(3);
    hp.add(listBox_);

    VerticalPanel buttonPanel = new VerticalPanel();
    SmallButton buttonAdd = createButton("Add...");
    buttonAdd.addClickHandler(addButtonClicked_);
    buttonPanel.add(buttonAdd);
    SmallButton buttonRemove = createButton("Remove");
    buttonRemove.addClickHandler(removeButtonClicked_);
    buttonPanel.add(buttonRemove);
    hp.add(buttonPanel);

    panel.add(hp);

    initWidget(panel);
  }
 private SmallButton createButton(String caption) {
   SmallButton button = new SmallButton(caption);
   button.addStyleName(RES.styles().button());
   button.fillWidth();
   return button;
 }