Bug 304929 [CommonNavigator] Unused method in NavigatorContentService
/** * Search for extensions that declare the given element in their * <b>triggerPoint</b> expression. * * @param anElement * The element to use in the query * @return The set of {@link INavigatorContentExtension}s that are * <i>visible</i> and <i>active</i> for this content service and * have a <b>triggerPoint</b> expression that is <i>enabled</i> * for the given element. */ public Set findOverrideableContentExtensionsByTriggerPoint(Object anElement) { Set overrideableExtensions = new TreeSet( ExtensionPriorityComparator.INSTANCE); Set descriptors = findDescriptorsByTriggerPoint(anElement, !CONSIDER_OVERRIDES); for (Iterator iter = descriptors.iterator(); iter.hasNext();) { INavigatorContentDescriptor descriptor = (INavigatorContentDescriptor) iter .next(); if (descriptor.hasOverridingExtensions()) { overrideableExtensions.add(getExtension(descriptor)); } } return overrideableExtensions; }
bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentService.java
if (rootContentProviders == null) {
				rootContentProviders = extractContentProviders(findRootContentExtensions(anElement));
			}
		}
		return rootContentProviders;
	}
	
	/**
	 * Returns the list of extensions that should be considered as possible
	 * contributors of CNF artifacts (labels, sorters, ...). The algorithm
	 * first considers the source of contribution and its overrides, and then
	 * any possibleChildren and their overrides in order.
	 * 
	 * @param anElement
	 *            An element from the tree (any element contributed to the
	 *            tree).
	 * @return A Collection of NCEs sorted in the correct order for label provider application
	 */
	public Collection findPossibleLabelExtensions(Object anElement) {
		LinkedHashSet contributors = new LinkedHashSet();
		INavigatorContentDescriptor sourceDescriptor = getSourceOfContribution(anElement);
		
		if (sourceDescriptor != null) {
			findOverridingLabelExtensions(anElement, sourceDescriptor, contributors);
		}
		
		
		Set possibleChildDescriptors = findDescriptorsWithPossibleChild(anElement, false);
		for (Iterator iter = possibleChildDescriptors.iterator(); iter.hasNext();) {
			NavigatorContentDescriptor ncd = (NavigatorContentDescriptor) iter.next();