private String getResourceTypeDescription(final ClientResourceType resourceType) {
   String description = resourceType.getDescription();
   description =
       (description == null || description.isEmpty())
           ? ProjectExplorerConstants.INSTANCE.miscellaneous_files()
           : description;
   return description;
 }
  @Override
  public void setItems(final FolderListing folderListing) {
    itemsContainer.clear();
    sortedFolderItems.clear();
    for (final FolderItem content : folderListing.getContent()) {
      if (!content.getType().equals(FolderItemType.FOLDER)) {
        sortedFolderItems.add(content);
      }
    }

    if (!sortedFolderItems.isEmpty()) {
      final Map<ClientResourceType, Collection<FolderItem>> resourceTypeGroups =
          classifier.group(sortedFolderItems);
      final TreeMap<ClientResourceType, Collection<FolderItem>> sortedResourceTypeGroups =
          new TreeMap<ClientResourceType, Collection<FolderItem>>(
              Sorters.RESOURCE_TYPE_GROUP_SORTER);
      sortedResourceTypeGroups.putAll(resourceTypeGroups);

      final Iterator<Map.Entry<ClientResourceType, Collection<FolderItem>>> itr =
          sortedResourceTypeGroups.entrySet().iterator();
      while (itr.hasNext()) {
        final Map.Entry<ClientResourceType, Collection<FolderItem>> e = itr.next();

        final CollapseTrigger collapseTrigger = makeTriggerWidget(e.getKey());

        final Collapse collapse = new Collapse();
        collapse.setExistTrigger(true);
        collapse.setId(getCollapseId(e.getKey()));
        final NavList itemsNavList = new NavList();
        collapse.add(itemsNavList);
        for (FolderItem folderItem : e.getValue()) {
          if (folderItem.getItem() != null) {
            setResourceToLoad(folderItem);
          }
        }
        collapse.setDefaultOpen(false);

        itemsContainer.add(collapseTrigger);
        itemsContainer.add(collapse);
        if (itr.hasNext()) {
          itemsContainer.add(new Divider());
        }
      }
      loadResourceSelected();

    } else {
      itemsContainer.add(new Label(ProjectExplorerConstants.INSTANCE.noItemsExist()));
    }
  }
  @Override
  public Object build() {
    view = new Button();
    view.setSize(ButtonSize.SMALL);
    view.setText(ProjectExplorerConstants.INSTANCE.openProjectEditor());
    view.addClickHandler(
        new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            placeManager.goTo("projectScreen");
          }
        });

    return view;
  }