code: public ImageDescriptor getWorkbenchImageDescriptor(IAdaptable adaptable,
  			int flags) {
  		IWorkbenchAdapter wbAdapter = (IWorkbenchAdapter) adaptable
  				.getAdapter(IWorkbenchAdapter.class);
  		if (wbAdapter == null) {
  			return null;
  		}
  		ImageDescriptor descriptor = wbAdapter.getImageDescriptor(adaptable);
  		if (descriptor == null) {
  			return null;
  		}
  
  		Point size = useSmallSize(flags) ? SMALL_SIZE : BIG_SIZE;
  		return new VdmElementImageDescriptor(descriptor, 0, size);
  	}
docs: Returns an image descriptor for a IAdaptable. The descriptor includes
  overlays, if specified (only error ticks apply). Returns
  <code>null</code> if no image could be found.
  
  @param adaptable
  the adaptable
  @param flags
  the image flags
  @return returns the image descriptor