@Override
 public String getText(Object arg) {
   if (arg instanceof IResource) {
     IResource resource = (IResource) arg;
     if (isFailedStatus(resource)) {
       return org.apache.commons.lang.StringUtils.capitalize(((IStatus) resource).getMessage());
     }
     return NLS.bind("{0} - {1}", resource.getKind(), resource.getName());
   }
   return arg.toString();
 }
 @Override
 public StyledString getStyledText(Object arg) {
   if (arg instanceof IResource) {
     IResource resource = (IResource) arg;
     StyledString text = new StyledString();
     if (isFailedStatus(resource)) {
       text.append(((IStatus) resource).getMessage());
     } else {
       text.append(StringUtils.humanize(resource.getKind().toString()));
       text.append(resource.getName(), StyledString.QUALIFIER_STYLER);
     }
     return text;
   }
   return null;
 }