Bug 139511 [CommonNavigator] getParent() fails in certain cases
In the implementation of getParents(), clients can sometimes fail to return the correct parent with the override cases taken into account. The attached patch fixes these issues, but should be reviewed by the Team Team to ensure that it does not cause any regressions for their cases.
bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider.java
return true;
				}
			} else if (cp.hasChildren(anElement))
				return true;
		}
		return false;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.viewers.ITreePathContentProvider#getParents(java.lang.Object)
	 */
	public TreePath[] getParents(Object anElement) {
		Set extensions = contentService
			.findContentExtensionsWithPossibleChild(anElement);
		Set result = new HashSet();
		NavigatorContentExtension foundExtension;
		NavigatorContentExtension[] overridingExtensions;
		for (Iterator itr = extensions.iterator(); itr.hasNext();) {
			foundExtension = (NavigatorContentExtension) itr.next();
			try {
		
				if (!shouldDeferToOverridePath(foundExtension.getDescriptor(),
						extensions)) {
		
					
					
					ITreeContentProvider tcp = foundExtension.getContentProvider();
					if (tcp instanceof ITreePathContentProvider) {
						ITreePathContentProvider tpcp = (ITreePathContentProvider) tcp;
						TreePath[] parents = tpcp.getParents(anElement);
						Set parentPaths = asSet(parents);