public void build(
      final List<FolderItem> segments,
      final FolderItem file,
      final ParameterizedCommand<FolderItem> onPathClick,
      final Dropdown... headers) {

    build(headers);

    if (segments != null) {
      for (final FolderItem activeItem : segments) {
        breadcrumbs.add(
            new NavLink(activeItem.getFileName()) {
              {
                setStyleName(NavigatorResources.INSTANCE.css().directory());
                addClickHandler(
                    new ClickHandler() {
                      @Override
                      public void onClick(ClickEvent event) {
                        onPathClick.execute(activeItem);
                      }
                    });
              }
            });
      }
      if (file != null) {
        breadcrumbs.add(
            new ListItem(new InlineLabel(file.getFileName())) {
              {
                setStyleName(NavigatorResources.INSTANCE.css().directory());
              }
            });
      }
    }
  }
  private IsWidget makeItemNavLink(
      final ClientResourceType resourceType, final FolderItem folderItem) {
    String fileName = folderItem.getFileName();
    if (!(resourceType instanceof AnyResourceType)) {
      fileName = Utils.getBaseFileName(fileName);
    }
    fileName = fileName.replaceAll(" ", "\u00a0");
    final NavLink navLink = new NavLink(fileName);
    navLink.addClickHandler(
        new ClickHandler() {

          @Override
          public void onClick(ClickEvent event) {
            Window.alert("click en el boton del resurso");
            presenter.itemSelected(folderItem);
          }
        });
    return navLink;
  }