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
contributionMemoryFirstClass.clear();
	}
	
	/**
	 * 
	 * 
	 * @param firstClassSource
	 * @param source
	 * @param element
	 */
	public void rememberContribution(INavigatorContentDescriptor source, INavigatorContentDescriptor firstClassSource, Object element) {
		/*
		 * We want to write to (overwrite) the contributionMemory only if we have never heard of the element before, or if the 
		 * element is coming from the same first class NCE, which means that the subsequent NCE is an override.  The override will
		 * take precedence over the originally contributing NCE.  However in the case of different first class NCEs, the first one 
		 * wins, so we don't update the contribution memory. 
		 */
		if (contributionMemory.get(element) == null || contributionMemoryFirstClass.get(element) == firstClassSource) {
			if (Policy.DEBUG_RESOLUTION)
				System.out.println("rememberContribution: " + Policy.getObjectString(element) + " source: " + source);  
			contributionMemory.put(element, source);
			contributionMemoryFirstClass.put(element, firstClassSource);
		}
	}
	
	/**
	 * Forget about the specified element
	 * 
	 * @param element
	 *            The element to forget.