/**
  * Get the text displayed in the tool tip for object.
  *
  * @param element the element for which the tool tip is shown
  * @return the {@link String} or <code>null</code> if there is not text to display
  */
 @Override
 public String getToolTipText(Object element) {
   Collection contentExtensions = contentService.findPossibleLabelExtensions(element);
   for (Iterator itr = contentExtensions.iterator(); itr.hasNext(); ) {
     NavigatorContentExtension extension = (NavigatorContentExtension) itr.next();
     ILabelProvider provider = extension.getLabelProvider();
     if (provider instanceof SafeDelegateCommonLabelProvider) {
       // can't get inside to get delegate so create another instance
       NavigatorContentDescriptor descriptor =
           (NavigatorContentDescriptor) extension.getDescriptor();
       provider = labelProviderMap.get(descriptor);
       if (provider == null) {
         try {
           provider = descriptor.createLabelProvider();
           labelProviderMap.put(descriptor, provider);
         } catch (CoreException e) {
           continue;
         }
       }
     }
     if (provider instanceof CellLabelProvider) {
       String text = ((CellLabelProvider) provider).getToolTipText(element);
       if (text != null) {
         return text;
       }
     }
   }
   return null;
 }
  /**
   * @param contentService A content service to filter the visible filters.
   * @param aParent The parent used to search for a sorter.
   * @return The set of filters that are 'visible' to the given viewer descriptor.
   */
  public CommonSorterDescriptor[] findApplicableSorters(
      NavigatorContentService contentService, Object aParent) {

    INavigatorContentDescriptor sourceOfContribution =
        contentService.getSourceOfContribution(aParent);
    return findApplicableSorters(contentService, sourceOfContribution, aParent);
  }
 public EnsembleNavigatorDecoratingLabelProvider(NavigatorContentService contentService) {
   super(contentService.createCommonLabelProvider());
   this.contentService = contentService;
 }