private void decorateFromFilesystem(final IResource resource,final IDecoration decoration,final TFSRepository repository){
  if (repository == null) {
    decoration.addOverlay(imageHelper.getImageDescriptor(TFS_OFFLINE_ICON));
  }
 else   if (resource.getType() == IResource.FILE && resource.isReadOnly()) {
    decoration.addOverlay(imageHelper.getImageDescriptor(TFS_ICON));
  }
 else   if (resource.getType() == IResource.FILE) {
    decoration.addOverlay(imageHelper.getImageDescriptor(UNKNOWN_ICON));
  }
 else {
    decoration.addOverlay(imageHelper.getImageDescriptor(TFS_ICON));
  }
}

private void decorateFromFilesystem ( final IResource resource , final IDecoration decoration , final TFSRepository repository ) { if ( repository == null ) { decoration . addOverlay ( imageHelper . getImageDescriptor ( TFS_OFFLINE_ICON ) ) ; } else if ( resource . getType ( ) == IResource . FILE && resource . isReadOnly ( ) ) { decoration . addOverlay ( imageHelper . getImageDescriptor ( TFS_ICON ) ) ; } else if ( resource . getType ( ) == IResource . FILE ) { decoration . addOverlay ( imageHelper . getImageDescriptor ( UNKNOWN_ICON ) ) ; } else { decoration . addOverlay ( imageHelper . getImageDescriptor ( TFS_ICON ) ) ; } }
this is a fallback decorator for when the itemcache is not available ( hasn ' t yet completed refreshing . ) this is very similar to the 2 . x labeldecorator .
