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
.getId() }), re);
			} catch (Error e) {
				NavigatorPlugin
						.logError(
								0,
								NLS
										.bind(
												CommonNavigatorMessages.Could_not_provide_children_for_element,
												new Object[] { foundExtension
														.getDescriptor()
														.getId() }), e);
		
			}
		}
		
		return (TreePath[]) result.toArray(new TreePath[result.size()]);
	}
	/**
	 * Search for parents and take overrides into account. 
	 * Uses only simple ITreeContentProvider.getParent() style semantics. 
	 */
	private Object findParent(NavigatorContentExtension foundExtension, Object anElement) { 
		Object parent = null; 
		INavigatorContentDescriptor foundDescriptor;  
		parent = foundExtension.getContentProvider().getParent(anElement); 
		if(parent == null && (foundDescriptor = foundExtension.getDescriptor()).getOverriddenDescriptor() != null) {
			return findParent(contentService.getExtension(foundDescriptor.getOverriddenDescriptor()), anElement);
		}  
		return parent;
	}